(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
时间: 2024-10-02 02:28:59
(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