Function squares_rnd::rand64
source · pub const fn rand64(counter: u64, key: u64) -> u64
Expand description
Generates random u64
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.