Skip to main content

sample_without_replacement

Function sample_without_replacement 

Source
pub fn sample_without_replacement(
    weights: &[f32],
    count: usize,
    rng: &mut LootRng,
) -> Vec<usize>
Expand description

Sample from distribution without replacement (for guaranteed drops)