4 ms·
Taking the modulus of the desired range isn't uniform.
by brandmeyer 6y ago
Taking the modulus of the desired range isn't uniform.
- gnulinux 6y agoThat's true, and obviously so but I never realized it until now. I'm curious why r%(max-min)+min is widespread "common" way of doing this, maybe I just saw it in a few places and never questioned it.