Function peroxide::statistics::rand::stdrng_from_seed

source ·
pub fn stdrng_from_seed(seed: u64) -> StdRng
Expand description

Std random number generator from seed

§Examples

use peroxide::fuga::*;

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

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