我用Swift 2制作了一个问答应用程序,现在我想将语法从random更改为arc4random...
if Questions.count > 0 && counter <= 15 {
QNumber = arc4random()% Questions.count
QLabel.text = Questions[QNumber].Question
AnswerNumber = Questions[QNumber].Answer
for i in 0..<Buttons.count{
Buttons[i].setTitle(Questions[QNumber].Answers[i], for: UIControlState())
}
Questions.remove(at: QNumber)
}