This question already has an answer here:
Currently I have this code which displays the questions on screen:
var questions = [
new Question("What is the answer to this question?", ["answer1", "answer2", "answer3", "correct answer"], "correct answer"),
new Question("question?", ["answer1", "answer2", "answer3", "correct"], "correct")
];
var quiz = new Quiz(questions);
I have researched various ways of randomising the order of questions, however none of them seem to work with the array I have. I was wondering how I would randomise the order of questions, whilst keeping the format I already have.
Aucun commentaire:
Enregistrer un commentaire