任意两个数之间的随机数

function random(start,end){
               var sum=end-start+1
            return Math.floor(Math.random()*sum+start)
          }
 

posted on 2017-03-30 23:57  熊熊之火  阅读(392)  评论(0编辑  收藏  举报

导航