Skip to main content

randfn

Function randfn 

pub fn randfn(mean: f64, deviation: f64) -> f64
Expand description

Returns a normally-distributed, pseudo-random floating-point value from the specified mean and a standard deviation. This is also known as a Gaussian distribution.

Note: This method uses the Box-Muller transform algorithm.