I was reading an article on MSDN Magazine about using the Enumerable class in LINQ to generate a random array. The article uses VB.NET and I\'m not immediately sure what the
Using the C5 Generic Collection Library, you could just use the builtin Shuffle() method:
Shuffle()
IList numbers = new ArrayList(Enumerable.Range(1,100)); numbers.Shuffle();