Function ocl::util::shuffle [] [src]

pub fn shuffle<T>(vec: &mut [T]) where T: OclScl

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