Module num

Source
Expand description

Strategies to generate numeric values (as opposed to integers used as bit fields).

All strategies in this module shrink by binary searching towards 0.

Modules§

f32
f64
i8
i16
i32
i64
i128
isize
u8
u16
u32
u64
u128
usize

Functions§

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