get a random integer JS code example Example: random int javascript //Returns random Int between 0 and 2 (included) Math.floor(Math.random()*3)