Sun Microsystems Sun Workstation — Sun Workstation 1.4 Manual: Release Notes, Installation, Troubleshooting

RAND(3F) FORTRAN LIBRARY ROUTINES RAND(3F) 0 NAME rand, drand, irand - return random values SYNOPSIS function lrand (Hlag) function rand (lflag) double precision function drand (lflag) DESCRIPTION These functions use random(3) to generate sequences of random numbers. Ir iflag is '1', the gen- erator is restarted and the first random value is returned. Ir 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 three functions share the same 256 byte state array. /rand returns positive integers in the range O through 2147483647. Rand and drand return values in the range 0.0 through 1.0 .

FILES /usr /lib/libF77.a SEE ALSO random(3) 0 0 Sun Release 1.4 Last change: g January Hl84 31a