Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ irand(3f) — Ultrix/UWS 4.2 VAX

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

rand(3)

rand(3f)  —  VAX  —  Unsupported

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. 

Restrictions

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

Return Values

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.

Files

/usr/lib/libF77.a

See Also

rand(3)

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