BF2Statistics.MapListForm.RandomizeBtn_Click C# (CSharp) Method

RandomizeBtn_Click() private method

Shuffles the maps listed in the MapList box
private RandomizeBtn_Click ( object sender, EventArgs e ) : void
sender object
e EventArgs
return void
        private void RandomizeBtn_Click(object sender, EventArgs e)
        {
            Random rnd = new Random();
            MapListBox.Lines = MapListBox.Lines.OrderBy(line => rnd.Next()).ToArray();
        }