Function fastrand::digit

source · []
pub fn digit(base: u32) -> char
Expand description

Generates a random digit in the given base.

Digits are represented by chars in ranges 0-9 and a-z.

Panics if the base is zero or greater than 36.