Expand description
random
Functionsยง
- choice
- Chooses a random element from an array / vector.
- randint
- Returns a random i32 from range
[lo, hi]
, where bothlo
andhi
are included. - random
- Returns an
f64
from the interval[0.0, 1.0)
. - randrange
- Returns a random i32 from range
[lo, hi)
, wherelo
is included andhi
is excluded. - shuffle
- Shuffles a vector / array in place.