I am trying to make quiz in C#.I made questions and answers and how should I shuffle them?
public void Questions()
{
string[] questions = new string[4];
label1.Text = questions[0] = "What variable is used to display whole number";
label1.Text = questions[1] = "What variable is used to show characters";
label1.Text = questions[2] = "What variable is used to display words and sentences";
label1.Text = questions[3] = "What variable is used to display decimal point values";
}
public void Answers()
{
string[] answers = new string[4];
radioButton1.Text = answers[0] = "int";
radioButton2.Text = answers[1] = "char";
radioButton3.Text = answers[2] = "string";
radioButton4.Text = answers[3] = "float";
}
public void Questions()
{
string[] questions = new string[4];
label1.Text = questions[0] = "What variable is used to display whole number";
label1.Text = questions[1] = "What variable is used to show characters";
label1.Text = questions[2] = "What variable is used to display words and sentences";
label1.Text = questions[3] = "What variable is used to display decimal point values";
}
public void Answers()
{
string[] answers = new string[4];
radioButton1.Text = answers[0] = "int";
radioButton2.Text = answers[1] = "char";
radioButton3.Text = answers[2] = "string";
radioButton4.Text = answers[3] = "float";
}