normally distributed random number with mean=0 and sd=1, nSeed > 0 to set random seed (returns 0)
double grnd( int nSeed = 0 )
A normally distributed random number.
EX1
// The example displays 10 normally distributes random numbers with mean=0 and // standard deviation = 1. void grnd_ex1() { for (int ii = 0; ii < 10; ii++) { double rr = grnd(); out_double("value = ", rr); } }
On every call it generates a normally distributed random double value with mean = 0. and
standard deviation = 1.
rnd
origin.h