Expand description
Thread-local random number generator
Structs§
- A reference to the thread-local generator
Constants§
Functions§
- Retrieve the lazily-initialized thread-local random number generator, seeded by the system. Intended to be used in method chaining style, e.g.
thread_rng().gen::<i32>()
, or cached locally, e.g.let mut rng = thread_rng();
. Invoked by theDefault
trait, makingThreadRng::default()
equivalent.