Function shuffle

Source
pub fn shuffle<T>(slice: &mut [T], rand_index: impl FnMut(usize) -> usize)