random number python normal distribution code example
Example 1: python random from normal distribution
>>> mu, sigma = 0, 0.1 # mean and standard deviation
>>> s = np.random.normal(mu, sigma, 1000)
Example 2: how to generate a random number python
import random
n = random.randint(0,22)
print(n)