MRAND48 - obtain long random integer.

(Compatible with UNIX System V C)


long mrand48();
r = mrand48();


long r;
is a pseudo-random integer greater than or equal to -2**31 and strictly less than 2**31.


"mrand48" returns a pseudo-random number in the range [-2**31,2**31). The random generator used is the linear congruential algorithm and 48-bit integer arithmetic. Before the first call to "mrand48", you should call "srand48" or "seed48" to initialize the random seed.

See Also:

expl c lib seed48
expl c lib srand48
expl c lib drand48
expl c lib erand48
expl c lib jrand48
expl c lib lrand48
expl c lib nrand48
expl c lib lcong48
expl c lib rand

Copyright © 1996, Thinkage Ltd.