@H_502_9@
1
var
temp:Int = Int(arc4random()%
100
)+
1
2,下面是使用arc4random_uniform函数求一个1~100的随机数(包括1和100)