【发布时间】:2010-09-20 06:28:32
【问题描述】:
我在 MSDN 杂志上阅读了一篇关于使用 Enumerable class in LINQ 生成随机数组的文章。这篇文章使用 VB.NET,我不确定 C# 中的等价物是什么:
Dim rnd As New System.Random()
Dim numbers = Enumerable.Range(1, 100). _
OrderBy(Function() rnd.Next)
【问题讨论】:
标签: c# vb.net linq enumerable