Function fastrand::global_rng::digit
source ยท pub fn digit(base: u32) -> char
Expand description
Generates a random digit in the given base
.
Digits are represented by char
s in ranges 0-9 and a-z.
Panics if the base is zero or greater than 36.