03-14-2011, 10:33 AM
(03-14-2011, 10:28 AM)thanasis2028 Wrote: Here is the code for the generate button:
Code:Dim r As New Random
TextBox1.Text = String.Format("{0} vs {1}", ListBox1.Items(r.Next(0, ListBox1.Items.Count)), ListBox2.Items(r.Next(0, ListBox2.Items.Count)))
Thank you that works, but it only generates 1 fixture. I need each player to have a random fixture.
Thanks.