14.2.37  Rand

The standard library Rand api defines access to a traditional multiplicative-congruential style pseudo-random number generator. (The Random API gives access to a more modern, higher quality pseudo-random number generator.)

The Rand api is implemented by the rand package.

The Rand api source code is in src/lib/src/rand.api. The above information is manually maintained and may contain errors.

api {
    Rand  = Unt;
    rand_min : Rand;
    rand_max : Rand;
    random : Rand -> Rand;
    make_random : Rand -> Void -> Rand;
    normalize : Rand -> Float;
    range : (Int , Int) -> Rand -> Int;};

Comments and suggestions to: