flâneur — a map of the web's best reading

Types of generators - The Rust Rand Book

rust-random.github.io · 995 words · saved by 1 readers

The previous section introduced RngCore, the trait which all random data sources must implement. But what exactly is a random data source?

Types of generators - The Rust Rand Book Keyboard shortcuts Press ← or → to navigate between chapters Press S or / to search in the book Press ? to show this help Press Esc to hide this help Auto Light Rust Coal Navy Ayu The Rust Rand Book Types of generators The previous section introduced RngCore , the trait which all random data sources must implement. But what exactly is a random data source? This section concerns theory; see also the chapter on random number generators . use rand::{RngExt, SeedableRng}; fn main() { // prepare a non-deterministic random number generator: let mut rng = rand

Explore this link on the map →

related reading