Function ocl_extras::shuffle

source ·
pub fn shuffle<T: OclScl>(vec: &mut [T])
Expand description

Shuffles the values in a vector using a single pass of Fisher-Yates with a weak (not cryptographically secure) random number generator.