(Compatible with UNIX System V C)
double erand48(); r = erand48(work);
"erand48" returns a pseudo-random number in the range [0.0,1.0). The random generator used is the linear congruential algorithm and 48-bit integer arithmetic.
The "work" vector holds information from one invocation of "erand48" to the next. If you always initialize the elements of "work" to the same values, you will always get the same sequence of random numbers.
expl c lib seed48 expl c lib srand48 expl c lib drand48 expl c lib jrand48 expl c lib lrand48 expl c lib mrand48 expl c lib nrand48 expl c lib lcong48 expl c lib rand
Copyright © 1996, Thinkage Ltd.