Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

rand(3c)



RAND(3F)                COMMAND REFERENCE                RAND(3F)



NAME
     rand, drand, irand - return random values

SYNOPSIS
     integer function irand (iflag)

     real function rand (iflag)

     double precision function drand (iflag)

DESCRIPTION
     These functions use rand(3c) to generate sequences of random
     numbers.  If iflag is 0, the generator is restarted and the
     first random value is returned.  If iflag is otherwise
     nonzero, it is used as a new seed for the random number
     generator, and the first new random value is returned.

     Irand returns positive integers in the range 0 through
     2147483647 (2 31 - 1).  Rand and drand return values in the
     range 0. through 1.0.

FILES
     /usr/lib/libF77.a
                    f77 intrinsic function (math) and startup
                    library.

RETURN VALUE
     Irand returns positive integers in the range 0 through
     2147483647
     (2 31 - 1).  Rand and drand return values in the range 0.
     through 1.0 .

CAVEATS
     The algorithm returns a 31 bit quantity.

SEE ALSO
     rand(3c).


















Printed 3/13/89                                                 1



%%index%%
na:264,93;
sy:357,1055;
de:1412,766;
fi:2178,227;
rv:2405,428;
ca:2833,125;
se:2958,121;
%%index%%000000000122

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026