随机数

2018-01-27  本文已影响7人  友田香菜

let temp = Int(arc4random_uniform(2))+0
print(temp)

随机生成0-2之间的整数(包括0和2)

上一篇 下一篇

猜你喜欢

热点阅读