Skip to main content

mod_u16

Function mod_u16 

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

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

ยงNotice

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