std.random

Basic random number generation

This module is only available if gluon is compiled with the rand feature.

Types

type RandomGen g = { next : g -> { value : Int, gen : g } }

Values

let xor_shift_rng : {
    new : Array Byte -> XorShiftRng,
    random_gen : std.random.RandomGen XorShiftRng
}

let thread_rng : {
    next_int : () -> IO Int,
    next_float : () -> IO Float,
    gen_int_range : Int -> Int -> IO Int
}