random function w3school code example
Example: generate random integer javascript
var randomnumber = Math.floor(Math.random() * (maximum - minimum + 1)) + minimum;
var randomnumber = Math.floor(Math.random() * (maximum - minimum + 1)) + minimum;