const num1 = 5;
const num2 = 20;
const len = 5;
function getRandomInt(min, max) {
return Math.floor(Math.random() * (max - min + 1)) + min;
}
const pass = [];
for(let i = 0; i< len; i++){
pass.push(getRandomInt(num1, num2))
}
 
console.log(pass)
Code will run automatically after changes.
Code runs in an isolated environment.