var Password1 : Array = [Int]()
var Password2 : Array = [Int]()
while Password1.count < 800 {
var RandomNum1 = Int(arc4random_uniform(256))
var RandomNum2 = Int(arc4random_uniform(256))
Password1[Password1.count] = RandomNum1
Password2[Password2.count] = RandomNum2
}
在Password1[Password1.count] = RandomNum1
線這似乎 - > EXC_BAD_INSTRUCTION(代碼= EXC_I386_INVOP,子碼=爲0x0)陣列索引超出範圍
http://stackoverflow.com/questions/24002733/add-an-element-to-an-array – m69