Function af_core::random::ratio[][src]

pub fn ratio<T: Number + SampleUniform>(numerator: T, denominator: T) -> bool

Returns true with a probability expressed by the ratio between two given numbers.