random int with 3 digets js code example
Example 1: javascript random no between 2 numbers
function randomIntFromInterval(min, max) { // min and max included
return Math.floor(Math.random() * (max - min + 1) + min);
}
Example 2: javascript random 4 digit number
var seq = (Math.floor(Math.random() * 10000) + 10000).toString().substring(1);
console.log(seq);