Random r = new Random(); Brush brush = new SolidColorBrush(Color.FromRgb((byte)r.Next(1, 255), (byte)r.Next(1, 255), (byte)r.Next(1, 233)));
int count = theCollection.Count; Random r = new Random(); var randomValue = theCollection[r.Next(0, count)]; // You now have a random element from the collection
Dictionary<string, Color>
List<Tuple<string, Color>>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)