Skip to main content

random_sample

Function random_sample 

Source
pub fn random_sample(files: usize, n: usize, seed: u64) -> Vec<usize>
Expand description

n of the indices below files, ascending, drawn at random from seed: every index when there are no more than n. The same seed draws the same sample.