math.random javascript modulo1 to 10 code example
Example 1: javascript random number between
Math.floor(Math.random() * 6) + 1
Example 2: js random generator
var options = ["Your options", "Another option!", "This is an option."];
var chosenOption = Math.floor(Math.random() * options.length);
console.log(options[option]);