Solved

# Getting a value from Standard Dev, and Mean

Posted on 2004-09-29

Hi all,

I have the Mean and Standard Deviation of a variable. This variable is cost, and this will vary for each entity. Using the mean and SD can someone tell me how I would create a random number based on lognormal.

For example if the SD is 1 and the mean is 50, I would expect the result to produce (mainly) between 49 and 51. (I understand that this isnt always true by the very nature of the curve).

I am making the tool in Java, which contains method nextGaussian() to return a random number normal distrubution between 0 and 1.

Many thanks,

H