摘要: JS之random随机数 Math.ceil(Math.random()*10); // 获取从 1 到 10 的随机整数,取 0 的概率极小。 Math.round(Math.random()); // 可均衡获取 0 到 1 的随机整数。 Math.floor(Math.random()*10) 阅读全文
posted @ 2020-10-28 17:40 颜颜blog 阅读(85) 评论(0) 推荐(0) 编辑