i32

Function i32 

Source
pub fn i32() -> i32
Expand description

Will generate a random i32

ยงExample

let a: i32 = hel_random::i32();
let b: i32 = hel_random::i32();
// Examples generated by macro, so we check if type is `bool` or `i8` or `u8` to avoid collisions
if std::mem::size_of::<i32>() > 1 {
    assert!(a != b);
}