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