(function (min,max){ var range = max - min; var rand = Math.random(); var num = min + Math.round(rand * range); return num; })(1, 100);
(function (min,max){ var range = max - min; var rand = Math.random(); var num = min + Math.round(rand * range); return num; })(1, 100);
转载于:https://www.cnblogs.com/DanBrown/p/8371632.html