Module rand::seq [] [src]

Functions for randomly accessing and sampling sequences.

Functions

sample_indices

Randomly sample exactly amount indices from 0..length.

sample_iter

Randomly sample amount elements from a finite iterator.

sample_slice

Randomly sample exactly amount values from slice.

sample_slice_ref

Randomly sample exactly amount references from slice.