Skip to main content

shuffle

Function shuffle 

Source
pub fn shuffle<T, R: Rng + ?Sized>(rng: &mut R, slice: &mut [T])
Expand description

Permutes slice in place (Fisher-Yates, from the back).