pub trait RngSubsetExtension { // Required method fn subset(&mut self, m: usize, n: usize) -> Vec<usize>; }
An extension to Rng which allows for sampling from a subset of the integers [0..n) without replacement.
Rng
[0..n)
Draw a random subset of m indices between 0 and n.
m
0
n