Function shuffled_indices

pub fn shuffled_indices(size: usize, rng: &mut StdRng) -> Vec<usize>
Expand description

Generates a shuffled vector of indices up to a size.

§Arguments

  • size - The size of the dataset to shuffle.

§Returns

A vector of shuffled indices.