[Swift]乱数を生成する方法

方法1
let cnt = arc4random_uniform(44)
print(cnt)

方法2
let cnt = arc4random() % 33
print(cnt)

Swift

Posted by arkgame