Function random::next_u32

source ·
pub fn next_u32() -> u32
Expand description

Returns a random u32.

Consider using init_rng if calling this function in a loop, or if you don’t require cryptographically secure random numbers.