Leonardus
Analogous LeoScript Operator srand

STACK

$ I\ -- $

DESCRIPTION

Red book operator initializes the random number generator with the seed,
which may be a value $ \in [ 0, 2^{31}-1 ] $. Executing srand with a particular value causes
subsequent invocations of rand to generate a reproducible sequence of results.
The random number state is maintained separately for each Context.

ORIGIN

Core code registered in systemdict.

SEE ALSO

Analogous LeoScript Operator rand Analogous LeoScript Operator rrand