南粤风采36选7是广东的一种彩票玩法.非常简单的从1-36个数字选7个.

今天在同事面前炫耀了一把,只用一行Lamda代码实现随机自动选号

Enumerable.Range(1, 36).Select(x => new { id = x, uid = Guid.NewGuid() }).OrderBy(x => x.uid).Take(7).ToList().ForEach(x => Console.WriteLine(x.id));

 

 

 

相关文章:

  • 2022-12-23
  • 2021-10-10
  • 2021-07-09
  • 2021-11-14
  • 2021-08-14
  • 2021-08-24
  • 2022-12-23
  • 2022-02-27
猜你喜欢
  • 2022-12-23
  • 2021-09-09
  • 2021-10-07
  • 2022-12-23
  • 2021-12-27
  • 2022-12-23
相关资源
相似解决方案