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