python:random
Python: random
log-uniform distribution
def log_uniform(low=0, high=1, size=None): return np.exp(np.random.uniform(np.log(low), np.log(high), size)) xs = np.log(log_uniform(0.04, 0.0001, 10000)) import matplotlib.pyplot as plt plt.hist(xs, bins=100); plt.show()
python/random.txt · 마지막으로 수정됨: 2024/03/23 02:42 저자 127.0.0.1