# Random sampling of 100 data points from a binomial population

This is my question I need to answer: Generate a random sample of 100 data points from a binomial population B(40, 0.4).

I'm pretty sure that n=100 and my mean is 40 and standard deviation is .4, but I just do not know how to find the random sample?

-
Presumably you have access to a random number generator, which produces pseudo-random numbers in the interval $[0,1)$. Call something between $0$ and $0.4$ a success. Repeat $40$ times, count the number of successes. That will give you one data point. Repeat $100$ times. – André Nicolas Dec 12 '13 at 0:30

OP had indeed said $40$ is the mean, but that is not true. – André Nicolas Dec 12 '13 at 0:39