Module rand

Source
Expand description

Rand module contains types for random number generation for non-std environments and for std environments.

Structs§

StdRng
A strong, fast (amortized), non-portable RNG

Traits§

Rng
User-level interface for RNGs
SeedableRng
A random number generator that can be explicitly seeded.

Functions§

gen_random
Generates random data from a thread-local RNG.
get_seeded_rng
Returns a seeded random number generator using entropy.