hi, i use this code to generate 5 random number with average 8.3 and standard deviation 2.7:
mu=8.3; %mean (m)
sigma=2.7; %standard deviation (m)
d = lognrnd(mu,sigma,5,1)
But the result:
d = 8333.6 15284 73.374 256.03 1203.6this numbers generated, but mean of this numbers Not equal to 8.3
Where did i make mistakes?
Best Answer