I know Math.random() is smaller than 1, but the problem is, Math.random() generates floating point numbers, and floating point addition may have rounding errors.
So my question is, is there any possible value of n which n+Math.random() < n+1 is false?