Each time I buttonclick my button, I would like my loop to execute and each time a single, random day of the week appears in my textBox1. For example, buttonclick-Tuesday, buttonclick-Thursday, buttonclick-Monday, buttonclick-Friday. I need the loop to execute a total of four (4) times. Then close the form.
for (int i = 0; i <= 4; i++)
{
String[] strpleaseloop = { "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday" };
Random r = new Random();
int iSelect = r.Next(0, 6);
textBox1.Text = strpleaseloop[iSelect];
this.Close();
}