Function ocl_extras::shuffled_vec

source ·
pub fn shuffled_vec<T: OclScl>(vals: (T, T), size: usize) -> Vec<T>
Expand description

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.