Function rand::distributions::ziggurat [] [src]

fn ziggurat<R: Rng, P, Z>(rng: &mut R, symmetric: bool, x_tab: ZigTable, f_tab: ZigTable, pdf: P, zero_case: Z) -> f64 where P: FnMut(f64) -> f64, Z: FnMut(&mut R, f64) -> f64
Unstable (rand)

: use rand from crates.io

Sample a random number using the Ziggurat method (specifically the ZIGNOR variant from Doornik 2005). Most of the arguments are directly from the paper: