Function random_pick::pick_multiple_from_slice
source · pub fn pick_multiple_from_slice<'a, T>(
slice: &'a [T],
weights: &'a [usize],
count: usize
) -> Vec<&'a T>
Expand description
Pick multiple elements from a slice randomly by given weights.