js 随机数函数

function GetRandomNum(Min,Max)
  {  
  var Range = Max - Min;  
  var Rand = Math.random();  
  return(Min + Math.round(Rand * Range));  
  }

原文地址:https://www.cnblogs.com/shary/p/2993625.html