PeterO.RandomGenerator.LogNormal C# (CSharp) Method

LogNormal() public method

Generates a logarithmic normally-distributed number with the given mean and standard deviation.
public LogNormal ( double mean, double sd ) : double
mean double The desired mean.
sd double Standard deviation.
return double
        public double LogNormal(double mean, double sd)
        {
            return Math.Exp((this.Normal() * sd) + mean);
        }