Skip to main content

rand_vector

Function rand_vector 

pub fn rand_vector<T>(length: usize) -> Vec<T>
where T: Randomizable,
Expand description

Generates a random vector of type T with the specified length.

ยงExamples

let vec: Vec<u64> = rand_vector(100);