//4
位随机数
let 随机数 = Int(arc4random_uniform(8999) + 1000) //8999是区间,1000是最小数
//5位随机数
let 随机数 = Int(arc4random_uniform(89999) + 10000)
//6位随机数
let 随机数 = Int(arc4random_uniform(899999) + 100000)
//7位随机数
let 随机数 = Int(arc4random_uniform(8999999) + 1000000)
//8位随机数
let 随机数 = Int(arc4random_uniform(89999999) + 10000000)
不懂的找我,具体不解释那么多了,我是整容通(hgzrt.com)产品经理,从小白开始自学撸码,在整容通app里面我的id是通通。