static int Quiz() { var QAndA = new QA[] { new QA { Q = "What is the capital of France", A = "Paris" }, new QA { Q = "What is the capital of Spain", A = "Madrid" }, // ... new QA { Q = "What is the captial of Russia", A = "Moscow" }, new QA { Q = "What is the capital of Ukraine", A = "Kiev" }, }; foreach (var qa in QAndA.OrderBy(i => _r.Next())) { Question(qa.Q, qa.A); } return(0); }