dimanche 6 décembre 2015

How to get a button to randomly choose and display names from a list

I have a list with names. These names are linked to a label. When I click the label a name at random designated for that label is selected.

What I need is for when a button is clicked, it selects a random name for each label.

for example;

I have 5 names in a list and each individual list is linked to an individual label. One name will be selected for a label at random. I need all 10 of my labels to select a random name, when a button is clicked.

Hope that makes sense. I am using Visual Studio 2010 and c# on a form. Many Thanks




Aucun commentaire:

Enregistrer un commentaire