Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ rand(3F) — CX/UX 6.20

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

rand(3C)

rand(3F)

NAME

drand, irand, rand, srand − random number generator

SYNOPSIS

integer iseed, i
real r
double precision dp, drand

call srand(iseed)

i = irand()

r = rand()

dp = drand()

DESCRIPTION

irand generates successive pseudo-random numbers in the range from 0 to 2∗∗31-1.  rand and drand generate pseudo-random numbers distributed in (0, 1.0).  srand uses its integer argument to re-initialize the seed for successive invocations of irand, rand and drand

SEE ALSO

rand(3C). 

NOTES

When compiling source with the -Qocs option, an explicit underscore needs to be added to the end of the routine names. 

CX/UX Hf77 Fortran Reference Manual

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