This question already has an answer here:
- Randomize a List<T> 18 answers
I have a question with the List<> datatype in C#. I have a List of colors (List<Color> colores) in a program that I am doing in Windows Forms, but I want that everytime that start the program this list mess up it of random form. I am searching a method as colores.Disort() but this doesn't exist.
Any ideas?
PD: I don't want a method of multiple lines, just a short method.
Thanks you for your time!
Aucun commentaire:
Enregistrer un commentaire