javascript math randint code example Example: random int javascript Click to copy//Returns random Int between 0 and 2 (included) Math.floor(Math.random()*3)