Module jrandom

Source
Expand description

random

Functionsยง

choice
Chooses a random element from an array / vector.
randint
Returns a random i32 from range [lo, hi], where both lo and hi are included.
random
Returns an f64 from the interval [0.0, 1.0).
randrange
Returns a random i32 from range [lo, hi), where lo is included and hi is excluded.
shuffle
Shuffles a vector / array in place.