See also Weyl sequences for generating samples from a discrete uniform distribution.

https://en.wikipedia.org/wiki/Weyl_sequence