生成随机的不同3个数 int[] ary = Enumerable.Range(1, 12).OrderBy(t => Guid.NewGuid()).Take(3).ToArray(); 以上为例子,文本记录!