Sample integer values uniformly from [minval, maxval).
[minval, maxval)
This uses modulo reduction of uniform 32-bit random bits. For ranges that do not divide 2^32, this introduces a very small modulo bias.
Sample integer values uniformly from
[minval, maxval).This uses modulo reduction of uniform 32-bit random bits. For ranges that do not divide 2^32, this introduces a very small modulo bias.