October 2019
Intermediate to advanced
444 pages
10h 37m
English
We can obtain randomness in just a few steps:
[dependencies]rand = {version = "0.7", features = ["small_rng"]}rand_distr = "0.2"rand_pcg = "0.2"
#[cfg(test)]mod tests { use rand::prelude::*; use rand::SeedableRng; use rand_distr::{Bernoulli, Distribution, Normal, Uniform};}
Read now
Unlock full access