Function ocl::util::shuffled_vec [] [src]

pub fn shuffled_vec<T>(vals: (T, T), size: usize) -> Vec<T> where T: OclScl

Returns a vector with length size which is first filled with each integer value in the (inclusive) range [vals.0, vals.1]. If size is greater than the number of integers in the aforementioned range, the integers will repeat. After being filled with size values, the vector is shuffled and the order of its values is randomized.