[go: up one dir, main page]

Module rand::seq

source ·
Expand description

Functions for randomly accessing and sampling sequences.

Functions

Randomly sample exactly amount indices from 0..length.
Randomly sample amount elements from a finite iterator.
Randomly sample exactly amount values from slice.
Randomly sample exactly amount references from slice.