The random module contains function for generating random samples from probability distributions:
random.binomial(p,n
The random.binomial(p,n
n
p
n
p
0≤p≤1
random.chisq(ν
The random.chisq(ν
χ
ν
ν
random.gaussian(σ
The random.gaussian(σ
σ
σ
σ
random.lognormal(ζ,σ
The random.lognormal(ζ,σ
ζ
σ
σ
ζ
ζ
random.poisson(n
The random.poisson(n
n
n
random.random()
The random.random() function returns a random real number between 0 and 1.