Hi, I understand that to produce an set of random standard normal N(0,1) observations with standard deviation of 10 in GAUSS I can use the function rndn(n,1) and premultiply it by 10, but what about its mean 0? Where does the zero applies here? Also, what if for example I want to create standard normal numbers with standard deviation 10 and mean 2? Thanks!
To change the mean, you just add it after the multiplication, like this:
n = 200; sd = 10; mean = 2; X = rndn(n, 1) * sd + mean;