Skip to main content

rand_normal

Macro rand_normal 

Source
macro_rules! rand_normal {
    ($rng:expr, $mu:expr, $sigma:expr) => { ... };
}
Expand description

Standard Box-Muller normal sample.

ยงExamples

use vrd::{Random, rand_normal};

let mut rng = Random::from_u64_seed(42);
let n = rand_normal!(rng, 0.0, 1.0);