dimanche 2 décembre 2018

How do I add a random number in a label?

I have put the following in the Form1_Load:

Random r = new Random();
int randomNumber1Label = r.Next(1, 10);

But I am needing to get the random numbers to show up in the following labels:

randomNumber1Label
randomNumber2Label




Aucun commentaire:

Enregistrer un commentaire