110,539
社区成员
发帖
与我相关
我的任务
分享
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication1
{
class Program
{
static void Main(string[] args)
{
int 范围下限 = 0;
int 范围上限 = 100;
int 取得个数 = 10;
int[] num = Enumerable.Range(范围下限, 范围上限 - 范围下限).Select(x => new { Key = Guid.NewGuid().ToString(), Value = x }).ToList().OrderBy(x => x.Key).ToArray();
data.Take(取得个数).ToList().ForEach(x => Console.Write(x.Value + " "));
}
}
}