Skip to main content

mod_u8

Function mod_u8 

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

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

ยงNotice

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