JS 编写一个指定范围内的随机数返回方法 function GetRandomNum(Min, Max) { var Range = Max - Min; var Rand = Math.random(); return Min + Math.round(Rand * Range); }