pub trait SampleRNG {
type Item;
// Required method
fn sample(&self, n: usize) -> Vec<Self::Item>;
}
Expand description
Extract no-duplicate sample from Vector
pub trait SampleRNG {
type Item;
// Required method
fn sample(&self, n: usize) -> Vec<Self::Item>;
}
Extract no-duplicate sample from Vector