Expand description
This crate provides methods to iterate over a group of values in random order, without allocation and shuffling them all.
Such an iterator may be obtained via the ShuffledIterGen
trait.
Structs§
- Shuffled
Iter - The actual iterator which iterates over, in random order, all
u32
s smaller than or equal to a given maximum value.
Traits§
- Shuffled
Iter Gen - This trait may be used to obtain an instance of
ShuffledIter
. It should always be implemented generically for all types implementingrand::Rng
, that is for all random number generators (which is the case for this library).