Scaling to int range via modulo has a bias towards lower numbers which gets much worse very high ranges. This is due to the generated UInt64 not necessarily being wholly divisible by the maxvalue.
Also, scaling to double in [0, 1) via division has a bias towards fractions of 2^64.
Scaling to int range via modulo has a bias towards lower numbers which gets much worse very high ranges. This is due to the generated UInt64 not necessarily being wholly divisible by the maxvalue.
Also, scaling to double in [0, 1) via division has a bias towards fractions of 2^64.