rand(3f)
NAME
rand, drand, irand − return random values
SYNTAX
function irand(iflag)
function rand(iflag)
double precision function drand(iflag)
DESCRIPTION
These functions use rand(3) to generate sequences of random numbers. If iflag is 1, the generator is restarted and the first random value is returned. If iflag is otherwise non-zero, it is used as a new seed for the random number generator, and the first new random value is returned.
The irand function returns positive integers in the range 0 through 2147483647. The rand and drand functions return values in the range 0. through 1.0.
RESTRICTIONS
The irand on the PDP11 calls rand(3) twice to form a 31 bit quantity, but bit 15 will always be 0.
FILES
/usr/lib/libF77.a