I am making a quiz game. I need to shuffle the arrays so that the questions, options, and answer arrays don't appear in order.
Here are the three arrays.
public string[] EasyQuestions =
{
"What is the capital of Australia?",
"Who was Steve Jobs?",
"What number Apollo took Neil Armstrong to the moon?",
"Which metal is heavier, silver or gold?",
"What country has the largest population?"
};
public string[] EasyOptions =
{
"Brisbane |Canberra |Adelaide |Australian Capital Territory",
"CEO of Microsoft |Co-founder of Apple |Creator of IBM |Australian Politician",
"10|11|12|1",
"Silver|Gold|Gold|Silver",
"'Murica|China|India|Australia"
};
public string[] EasyAnswers =
{
"Canberra",
"Apple",
"11",
"Gold",
"China"
};
I want all of the arrays to be shuffled identically so I don't get wrong answers with different options and different questions?
QuizEntryclass that hasQuestion,Options, andAnswerproperties. Instantiate instances of this class, assign the values, throw them into a collection, then it becomes trivial to shuffle them.