Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ irandm(3f) — Ultrix FORTRAN 1.0 RISC

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

random(3)

random(3f)  —  RISC

NAME

random, drandm, irandm − better random number generator

SYNTAX

function irandm ( iflag ) function random ( iflag ) double precision function drandm ( iflag )

DESCRIPTION

These functions use the random function to generate sequences of random numbers, and should be used rather than the older functions described in rand() If iflag is nonzero, it is used as a new seed for the random number generator, and the first new random value is returned. 

The irandm function returns positive integers in the range 0 through 2147483647 (2**31−1). The random and drandm functions return values in the range 0. through 1.0 by dividing the integer random number from random() by 2147483647 .

FILES

/usr/lib/libF77.a

SEE ALSO

random(3)

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