Skip to main content

mod_u32

Function mod_u32 

Source
pub fn mod_u32(n: u32) -> u32
Available on crate feature tls only.
Expand description

Generates a random u32 value in range (0..n).

ยงNotice

This has a very slight bias. Use range_u32() instead for no bias.