//最大值 5   最小值 1
var fround = LimitRandom(1,5)
alert(fround);

function LimitRandom(min,max){
var fRound = Math.floor(Math.random()*(max-min+1)+min);
return fRound;
}

相关文章:

  • 2022-12-23
  • 2021-12-09
  • 2022-12-23
  • 2021-08-28
  • 2022-12-23
  • 2021-07-12
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-12-24
  • 2021-10-13
  • 2021-08-05
  • 2021-12-25
  • 2021-11-23
  • 2022-02-10
  • 2021-06-21
相关资源
相似解决方案