如何获取一个随机整数

2017-02-22  本文已影响0人  水剑承王

Math.floor(Math.random() * (max - min + 1)) + min;

上一篇 下一篇

猜你喜欢

热点阅读