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