Module Femtolib.Random2


module Random2: sig .. end

val float_lp : Random.State.t -> float
Returns a float between 0. and 1., with Low Precision: only 30 bits (even on 64 bits machines, since Random.bits returns 30 random bits).
val bool : Random.State.t -> unit -> bool
let random_bool = bool prng gives a pseudo-random boolean generator of type unit -> bool faster than the one provided by stdlib.