Function squares_rnd::rand32
source · pub const fn rand32(counter: u64, key: u64) -> u32
Expand description
Generates random u32
counter
- Integer counter which acts as state. Should be increased to generate new number.key
- Integer which in general should be irregular bit pattern with approximately equal number of zeros and ones. Generally should be constant, but can be changed when new range of random numbers is required.