Forum Moderators: open
Well, it entirely depends on the way you use the random number generator.
Math.floor(Math.random()*2) will always return a value that is either 0 or 1.
Other than that, I think 0 and 1 should be included in a regular Math.random()... But I'm not sure. It's not very likely to ever appear anyway :)