生成一个0-N的随机数

来源:互联网 发布:酷宝数据 作假 编辑:程序博客网 时间:2024/06/08 11:26
var ans = Math.floor(Math.random()*N)+1
0 0
原创粉丝点击