Skip to main content

create_random_index

Function create_random_index 

Source
pub fn create_random_index(
    size: usize,
    null_density: f32,
    max_value: usize,
) -> UInt32Array
Expand description

Creates a random (but fixed-seeded) UInt32Array of indices in 0..max_value.

Intended for use as the indices argument to take kernels. null_density controls the fraction of null indices.