macro_rules! rand_bool {
    ($rng:expr, $probability:expr) => { ... };
}
Expand description

Generate a random boolean with a provided probability.

Examples

#[macro_use] extern crate vrd;
// Generates a boolean with 50% probability of being true

Panics

Panics if probability is not between 0.0 and 1.0.