peroxide::statistics::rand

Function marsaglia_polar

Source
pub fn marsaglia_polar(rng: &mut ThreadRng, m: f64, s: f64) -> f64
Expand description

Gaussian random number generator using Marsaglia polar form