📅  最后修改于: 2022-03-11 15:03:21.498000             🧑  作者: Mango
function randomNumberGeneratorInRange(rangeStart, rangeEnd) {
return Math.floor(Math.random() * (rangeStart - rangeEnd + 1) + rangeEnd);
}
console.log(`My random number: ${randomNumberGeneratorInRange(10, 50)}`);