Charles.Forsyth20060303-partialeea662d19 years agoHistory
35 lines · 675 B · Text
RawDownload
.TH RAND 2.SH NAMErand \- pseudo random number generation.SH SYNOPSIS.EXinclude "rand.m";rand = load Rand Rand->PATH; init:    fn(seed: int);rand:    fn(modulus: int): int;bigrand: fn(modulus: big): big;.EE.SH DESCRIPTION.B Initinitialises the pseudo-random number generatorwith.IR seed ;subsequent calls to .B randand.B bigrandreturn a pseudo-random sequence of integersor bigs respectively, between 0 and.IR modulus \-1..I Modulusshould be a non-negative integer;for.BR bigrand ,it should be less than 2^53..SH SOURCE.B /appl/lib/rand.b.SH SEE ALSO.IR security-random (2).SH BUGSThe quality of the algorithm currently used is questionable.