Function proptest::bool::weighted

source ·
pub fn weighted(probability: f64) -> Weighted
Expand description

Generates boolean values by picking true with the given probability (1.0 = always true, 0.0 = always false).

Shrinks true to false.