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