Oberon || Library || Module Index || Search Engine || Definition || Module


Ulm's Oberon Library:
SubtractiveRandomGenerator


NAME

SubtractiveRandomGenerator - implementation of a pseudo random number generator

SYNOPSIS

PROCEDURE Create(VAR sequence: Random.Sequence; seed: LONGINT);

DESCRIPTION

SubtractiveRandomGenerator offers an implementation of RandomGenerators. The implementation uses the subtractive method taken from Knuth, Seminumerical Algorithms, 3.2.2 and 3.6. This pseudo random number generator is recommended if a large quantity of uniformly distributed random numbers is needed. The produced random numbers are not cryptographically secure.

CreateSequence creates and initializes a new sequence of pseudo random numbers. The sequence of random numbers depends on seed.

AUTHOR

Frank B.J. Fischer

SEE ALSO

RandomGenerators
general abstraction for pseudo random number generation
BBS
a cryptographically secure pseudo random generator

Edited by: martin, last change: 1997/10/11, revision: 1.2, converted to HTML: 1997/10/11

Oberon || Library || Module Index || Search Engine || Definition || Module