pub fn u16() -> u16Expand description
Will generate a random u16
ยงExample
let a: u16 = hel_random::u16();
let b: u16 = hel_random::u16();
// Examples generated by macro, so we check if type is `bool` or `i8` or `u8` to avoid collisions
if std::mem::size_of::<u16>() > 1 {
assert!(a != b);
}