pub fn weighted<T: Strategy>(
probability_of_some: impl Into<Probability>,
) -> OptionStrategy<T>
Return a strategy producing
Optional values wrapping values from the
given delegate strategy.
Some values shrink to
Some is chosen with a probability given by
must be between 0.0 and 1.0, both exclusive.