2017-01-16 61 views

回答

-1

您必须将arc4random的结果限制为您的数组长度。

array1[Int(arc4random_uniform(UInt32(array1.count)))]