using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;//引用命名空间
namespace ConsoleApplication1
{
class Program
{
static void Main(string[] args)
{
while (true)
{
Random random = new Random();
int number = random.Next(1, 11);//1-10,不包含11
Console.WriteLine(number);
Console.ReadKey();
}
}
}
}
04-21
556
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)