Is there any other way to generate a random number from a specific range other than this:
Math.floor(Math.random() * (max - min + 1) + min);
Is there any other way to generate a random number from a specific range other than this:
Math.floor(Math.random() * (max - min + 1) + min);
Try this Example
var min = 1;
var max = 100;
Math.floor(Math.random() * (max - min + 1)) + min;