Skip to main content

rand_array

Function rand_array 

pub fn rand_array<T, const N: usize>() -> [T; N]
where T: Randomizable,
Expand description

Generates a random array of type T with N elements.

ยงExamples

let arr: [u64; 4] = rand_array();