proptest::num

Function sample_uniform_incl

source
pub fn sample_uniform_incl<X: SampleUniform>(
    run: &mut TestRunner,
    start: X,
    end: X,
) -> X
Expand description

Generate a random value of X, sampled uniformly from the closed range [low, high] (inclusive). Panics if low > high.