随机x到x之间的值

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

 

posted @ 2017-11-20 15:40  -CLAY-  阅读(180)  评论(0编辑  收藏  举报