Function rgsl::randist::flat::flat [] [src]

pub fn flat(r: &Rng, a: f64, b: f64) -> f64

This function returns a random variate from the flat (uniform) distribution from a to b. The distribution is,

p(x) dx = {1 \over (b-a)} dx

if a <= x < b and 0 otherwise.