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 random indices below files from seed, ascending; all when files <= n. The same seed draws the same sample.