logo

Module rand::seq

source · []
Expand description

Functions for randomly accessing and sampling sequences.

TODO: module doc

Modules

Index sampling

Structs

Iterator over multiple choices, as returned by `SliceRandom::choose_multiple

Traits

Extension trait on iterators, providing random sampling methods.

Extension trait on slices, providing random mutation and sampling methods.

Functions

sample_iterDeprecated

Randomly sample amount elements from a finite iterator.

sample_sliceDeprecated

Randomly sample exactly amount values from slice.

Randomly sample exactly amount references from slice.