javascript definir random int code example
Example 1: random int javascript
//Returns random Int between 0 and 2 (included)
Math.floor(Math.random()*3)
Example 2: generate random integer javascript
var randomnumber = Math.floor(Math.random() * (maximum - minimum + 1)) + minimum;