JS获取min到max的随机整数

来源:互联网 发布:网络打印机用户名密码 编辑:程序博客网 时间:2024/05/18 03:45
Math.floor(Math.random() * (max - min + 1) + min)
原创粉丝点击