Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ irand(3f) — Ultrix WS 1.1

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

rand(3)

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() 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 nonzero, it is used as a new seed for the random number generator, and the first new random value is returned. 

RETURN VALUE

The irand subroutine returns positive integers in the range 0 through 2147483647. The rand and drand subroutines return values in the range 0. through 1.0.

RESTRICTIONS

The algorithm returns a 31-bit quantity on the VAX. 

FILES

/usr/lib/libF77.a

SEE ALSO

rand(3)

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