.\" Copyright (c) 1983 Regents of the University of California.
.\" All rights reserved. The Berkeley software License Agreement
.\" specifies the terms and conditions for redistribution.
.\" @(#)rand.3 6.1 (Berkeley) %G%
rand, drand, irand \- return random values
.B function irand (iflag)
.B double precision function drand (iflag)
The newer random(3f) should be used in new applications;
rand remains for compatibilty.
to generate sequences of random numbers.
is '1', the generator is restarted and the first random value is returned.
is otherwise non-zero, it is used as a new seed for the random number
generator, and the first new random value is returned.
returns positive integers in the range 0 through 2147483647.
return values in the range 0. through 1.0 .
.ie \nM /usr/ucb/lib/libF77.a
The algorithm returns a 15 bit quantity on the PDP11; a 31 bit quantity
twice to form a 31 bit quantity, but bit 15 will always be 0.