Can anyone help me out with an equation (or algorithm) that I can use in a program I am writing to simulate sampling from a Normal distribution? I also need this for a Lognormal distribution.
I basically need a function:
SampledValue = f(RandomNumber)
Thanks for any help!
