I'm new to Python and I would like to generate 1000 samples having normal distribution with specific mean and variance. I got to know a library called NumPy and I am wondering if I used it in the correct way. Here's my code:
import numpy
a = numpy.random.normal(0, 1, 1000)
print(a)
where 0 is the mean, 1 is the standard deviation (which is square root of variance), and 1000 is the size of the population.
Is this the correct way, or is there a better way to do it?
