pub fn weighted(probability: f64) -> Weighted
Generates boolean values by picking true with the given probability (1.0 = always true, 0.0 = always false).
true
probability
Shrinks true to false.
false