What am I doing wrong? It won't let me use random.
PickRandom()
func PickRandom() {
let RandomNumber = random() % QuizObject.count // error here
Btn1.setTitle(QuizObject[RandomNumber].Answers[0])
Btn2.setTitle(QuizObject[RandomNumber].Answers[1])
Btn3.setTitle(QuizObject[RandomNumber].Answers[2])
Btn4.setTitle(QuizObject[RandomNumber].Answers[3])
QuestionLabel.setText(QuizObject[RandomNumber].Question)
RealAnswer = QuizObject[RandomNumber].Answer
}
func RightWrong(){
if (NumberPicked == RealAnswer) {
PickRandom()
QuestionLabel.setTextColor(UIColor.white)
} else {
QuestionLabel.setTextColor(UIColor.red)
}
}