VMS Help
RTL Routines, MTH$, MTH$RANDOM
*Conan The Librarian (sorry for the slow response - running on an old VAX)
|
|
The Random Number Generator, Uniformly Distributed routine is a
general random number generator.
Format
MTH$RANDOM seed
OpenVMS usage:floating_point
type: F_floating
access: write only
mechanism: by value
MTH$RANDOM returns an F-floating random number.
seed
OpenVMS usage:longword_unsigned
type: longword (unsigned)
access: modify
mechanism: by reference
The integer seed, a 32-bit number whose high-order 24 bits
are converted by MTH$RANDOM to an F-floating random number.
The seed argument is the address of an unsigned longword that
contains this integer seed. The seed is modified by each call to
MTH$RANDOM.
[legal]
[privacy]
[GNU]
[policy]
[netiquette]
[sponsors]
[FAQ]
Polarhome, production since 1999.
Member of Polarhome portal.