I am generating normally distributed random numbers using the 'randn' function for a given mean and standard deviation. Once I get the numbers, I check their mean and standard deviation, which is fairly accurate only if I am generating a large set of random numbers. I need to generate only four random numbers, and when I do that, the mean and std. deviation of these are not close to the specified mean and standard deviation. Please suggest?
MATLAB: How to generate only four normally distributed random numbers with given mean and std. deviation
randum number generator
Best Answer