Function rv::misc::pflip

source ·
pub fn pflip(weights: &[f64], n: usize, rng: &mut impl Rng) -> Vec<usize>
Expand description

Draw n indices in proportion to their weights