I wish to program a Skateboard Trick Generator for me and some friends and I can't seem to get the List to show on the Label and randomly pick a trick.
private void btnClick_Click(object sender, EventArgs e)
{
//new random
static Random rnd = new Random();
string[] words = { "Kick Flip", "Heel Flip", "Tre Flip" };
lblTrick.Show(words[rnd.Next(0, words.Length)];
If anyone could help I would love that.
Thanks.
Aucun commentaire:
Enregistrer un commentaire