module Random =
struct ... end
Values of this type are used to store the current state of the
Initialize the generator, using the argument as a seed.
The same seed will always yield the same sequence of numbers.
int array -> unit
init but takes more data as seed.
Initialize the generator with a more-or-less random seed chosen
in a system-dependent way.
Return 30 random bits in a nonnegative integer.
Random.float bound returns a random floating-point number
between 0 (inclusive) and
bound (exclusive). If
negative, the result is negative. If
bound is 0, the result
Returns the current state of the generator. This is useful for
checkpointing computations that use the PRNG.
unit -> state
Resets the state of the generator to some previous state returned by
state -> unit