24 Random Number Generator
This package provides a random number generator. To load the
package, enter the query
| ?- use_module(library(random)).
This library fully supports multiple SICStus run-times in a process.
Binds Number to a random float in the interval [0.0, 1.0).
Note that 1.0 will never be generated.
- Binds Number to a random integer in the interval
[Lower,Upper) if Lower and Upper are integers.
Otherwise, Number is bound to a random float between
Lower and Upper. Upper will never be generated.
Generates an unordered set of K unique integers, chosen randomly in the
range 1..N. RandomSeq is not returned in any
Generates an ordered set of K unique integers, chosen randomly
in the range 1..N. The set is returned in standard order.
Tries to unify State with the term
) where X, Y, and Z are
integers describing the state of the random generator.
Sets the state of the random generator. X, Y, and Z
must be integers in the ranges