📅  最后修改于: 2022-03-11 15:03:09.483000             🧑  作者: Mango
代码示例6
const min = 1;
const max = 4;
const intNumber = Math.floor(Math.random() * (max - min)) + min;
console.log(intNumber); //> 1, 2, 3