Skip to main content

rand_value

Function rand_value 

pub fn rand_value<T>() -> T
where T: Randomizable,
Expand description

Generates a random value of type T using the thread-local random number generator.

ยงExamples

let x: u64 = rand_value();
let y: u128 = rand_value();