Skip to main content

normal_sample

Function normal_sample 

Source
pub fn normal_sample(mu: f64, sigma: f64, n: usize, rng: &mut Rng) -> Vec<f64>
Expand description

Sample n values from Normal(mu, sigma) using Box-Muller via rng.next_normal_f64().

ยงDeterminism Contract

Same RNG state => identical output vector, bit-for-bit.