随机数

function random (min,max) {
return Math.floor(Math.random()*(max-min)+1)
}
console.log(random(1,4))

posted @ 2021-03-08 10:06  zjxgdq  阅读(28)  评论(0)    收藏  举报