Hi so i have been having a bit of trouble with getting multiple questions to randomise whenever i try to pull questions from a text file.
Random Num = new Random();
int Qnumber = Num.Next(QandAClass1.Questions.Count);
label8.Text = QandAClass1.Questions.Count.ToString();
// counts items in the list and selects random number from it
label1.Text = QandAClass1.Questions[Qnumber];
///////////////////////////////////////////////////////
Answer = QandAClass1.Answers[Qnumber];
label2.Text = Answer; // Stores ans for selected question
///////////////////////////////////////////////////////
QandAClass1.Questions.RemoveAt(Qnumber);
QandAClass1.Answers.RemoveAt(Qnumber);
label8.Text = QandAClass1.Questions.Count.ToString();
This is the Code i have at the minute and this works great but only for one question. However i have five questions on the screen at once and i need them all to be random. they are just labels on a windows form. Any help or pointer would be greatly appreciated. Thanks :) PS label 8 on this form was just a checker for me to make sure all the right number of questions were being read in. Also my label 2 was just to check that the answer matched the question.