So this is more of a math question and due to memory limits in computers it makes no difference, but to my knowledge mathematically speaking 0,99..9 = 1 so when we say that 1 is excluded [0,1) what would the proper notation be for Math.random()*2 the lower limit is clear [0, 2), but shouldn't 0,99..8 * 2 be 1,99..6 thus exluding 1,99..7, 1,99..8 as possible answers. I guess my mistake is that I'm not understanding infinity properly and the answer is just simply [0,2), but it doesn't seem a trival answer.
Thanks in advance, Carlos