Dice

Our newest task was to create an application in which by clicking a button the dice would roll.

For this we learned a new function, the random.

Random = new Random ; int x; x = r.Next (1,7)

if (x ==1) {pictureBox1.Visible = true; pictureBox2.Visible = false; pictureBox3.Visible = false; pictureBox4.Visible = false, pictureBox5.Visible = false; pictureBox6.Visible = false;}

and so...