Answers for "python random normal"

4

python random from normal distribution

>>> mu, sigma = 0, 0.1 # mean and standard deviation
>>> s = np.random.normal(mu, sigma, 1000)
Posted by: Guest on May-12-2020
1

how to generate random normal number in python

from scipy.stats import norm
data = norm.rvs(loc=52, scale=4.5, size=100)
Posted by: Guest on May-11-2021

Code answers related to "python random normal"

Python Answers by Framework

Browse Popular Code Answers by Language