我正在做一个问答游戏。我需要打乱数组,以便问题、选项和答案数组不会按顺序出现。
这是三个数组。
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"
};
我希望所有数组都被相同地洗牌,这样我就不会因为不同的选项和不同的问题得到错误的答案?