The Rust Rand Book
This is the extended documentation set for Rust's Random number lib (source).
- The Rand repository
- API reference for the latest release
- API reference for the master branch
- The crate page
Distinction between Rand and
rand_core crate provides the necessary traits and functionality for
implementing RNGs; this includes the
Crates implementing RNGs should depend on
Applications and libraries consuming random values are encouraged to use the
Rand crate, which re-exports the common parts of
A quick introduction to the various crates, modules and traits.
A run-down of our feature gates (extra functionality).
Want an overview of how everything fits together? Or confused by some of the terminology used in this lib? Read the guide.
"Random number generation" often involves producing deterministic yet "random" data. If you wish to produce reproducible results (i.e. deterministic, stable and portable), then you should read this chapter.
A guide to upgrading to the next signficant version.
About contributing to the Rand project and running its tests and benchmarks.