std.random
Basic random number generation
This module is only available if gluon is compiled with the rand
feature.
Basic random number generation
This module is only available if gluon is compiled with the rand
feature.
type RandomGen g = { next : g -> { value : Int, gen : g } }
type XorShiftRng = <opaque>
let xor_shift_rng : { new : Array Byte -> XorShiftRng, random_gen : RandomGen XorShiftRng }
let thread_rng : { next_int : () -> IO Int, next_float : () -> IO Float, gen_int_range : Int -> Int -> IO Int }