[][src]Module rand::seq::index

Low-level API for sampling indices

Enums

IndexVec

A vector of indices.

IndexVecIntoIter

Return type of IndexVec::into_iter.

IndexVecIter

Return type of IndexVec::iter.

Functions

sample

Randomly sample exactly amount distinct indices from 0..length, and return them in random order (fully shuffled).