Expand description
This crates contains functions for generating random values.
These functions are intended to be used in tests, benchmarks, and examples. When compiled to WebAssembly target, all of the functions are omitted.
Functionsยง
- prng_
array - Returns an array of value of the specified type and the specified length generated
pseudo-randomly from the specified
seed. - prng_
vector - Returns a vector of value of the specified type and the specified length generated
pseudo-randomly from the specified
seed. - rand_
array - Returns an array of random value of the specified type and the specified length.
- rand_
value - Returns a single random value of the specified type.
- rand_
vector - Returns a vector of random value of the specified type and the specified length.
- shuffle
- Randomly shuffles slice elements.