next up previous contents
Next: Sampling from a Uniform Up: Sampling From Statistical Distributions Previous: Sampling From Statistical Distributions   Contents

Sampling from a Normal Distribution

To sample from a normal distribution, use the normal(mean, stdev, stream) function. The following returns a value from a normally distributed set with a mean of $50$ and a standard deviation of $3.55$ using stream $4$.

double i = samplesource.normal(50, 3.55, 4);



Hydroponics 2002-06-08