When generating random integers, does Math.round() deliver equitable results compared to Math.floor()?

Integers
Test times

Using Math.round()

Using Math.floor()

The reason Math.round() random integers are "weighted" in favor of the middle numbers is because they can be chosen by rounding up or rounding down. The lowest number can only be chosen by rounding down, and the highest number can only be chosen by rounding up. So the numbers in the middle have twice as many chances of being chosen as the numbers on each end.


More on random numbers