Skip to main content

normal

Function normal 

Source
pub fn normal<R: RngCore + ?Sized>(rng: &mut R, mean: f64, std: f64) -> f64
Expand description

Draw a normal variate via Box–Muller, consuming exactly two uniforms.

Only the cosine arm is used (no caching of the sine arm) so the draw count per call is fixed and matches the Python feed.