Function peroxide::statistics::rand::smallrng_from_seed

source ·
pub fn smallrng_from_seed(seed: u64) -> SmallRng
Expand description

Small random number generator from seed

§Examples

use peroxide::fuga::*;

fn main() {
    let mut rng = smallrng_from_seed(42);

    let n = Normal(0f64, 1f64);
    n.sample_with_rng(&mut rng, 10).print();
}