Module S.State

type t

The state of the random number generator.

val bits : t -> int

bits s returns 30 random bits in a nonnegative integer.

val int : t -> int -> int

int bound returns a random integer comprised between 0 (inclusive) and bound (exclusive). bound must be greater than 0 and less than 230.