PreviousUpNext

13.2.44  rand

The standard library rand package implements a simple traditional multiplicative linear congruential style pseudo-random number generator taken from Paulson’s classic book “ML for the Working Programmer”, pages 170-171. It is recommended by Stephen K. Park and Keith W. Miller, “ Random number generators: good ones are hard to find”, Communications of the ACM 31 (1988), 1192-1201. Updated to include the new preferred multiplier of 48271 per CACM 36 (1993), 105-110 and to use tagged_unt.

Note that the random package provides a better pseudo-random number generator.

The rand package implements the Rand API.

The rand package source code is in src/lib/src/rand.pkg.

The above information is manually maintained and may contain errors.

Rand

Comments and suggestions to: bugs@mythryl.org

PreviousUpNext