Skip to main content

shuffle_pick

Function shuffle_pick 

Source
pub fn shuffle_pick<T>(rng: &mut dyn FnMut() -> f64, items: &mut [T], n: usize)
Expand description

Moves up to n randomly selected items to the front of items.