Possible Duplicate:
Randomize a List<T> in C#
Let's suppose that I have
List<SomeClass> _myList;
and I populate _myList with ordered collection of objects. Now, I would like to shuffle them. How?
I was thinking of using
_myList.Sort( (a,b) => r.GetNext() - 0.5 );
but I suppose that can work only on SOME implementations of Sort()
.
BTW, r = new Random();
BTW2, my lists are thousands elements large...