pub fn bernoulli_distribution<U>(uniform_generator: &mut U, p: f64) -> f64where
U: UniformGenerator,Expand description
A Bernoulli sample: 1 with probability p (a uniform below p), 0 otherwise.
pub fn bernoulli_distribution<U>(uniform_generator: &mut U, p: f64) -> f64where
U: UniformGenerator,A Bernoulli sample: 1 with probability p (a uniform below p), 0 otherwise.