使用random()方法生成随机数,固定样式:

function(min,max){

  公式:值= Math.random()*可能的值+第一个值

   Math.random()*(max-min)+min

}

相关文章: