Expand description
random
Functionsยง
- choice
- Chooses a random element from an array / vector.
- randint
- Returns a random i32 from range
[lo, hi], where bothloandhiare included. - random
- Returns an
f64from the interval[0.0, 1.0). - randrange
- Returns a random i32 from range
[lo, hi), wherelois included andhiis excluded. - shuffle
- Shuffles a vector / array in place.