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
The Developer Fusion VB.Net to C# converter says that the equivalent C# code is:
System.Random rnd = new System.Random();
IEnumerable numbers = Enumerable.Range(1, 100).OrderBy(r => rnd.Next());
For future reference, they also have a C# to VB.Net converter. There are several other tools available for this as well.