Random r = new Random(10);
int num = r.Next(1, 7);
int num1=r.Next(1,7);
int num2 = r.Next(1, 7);
int num3 = r.Next(1, 7);
int num4 = r.Next(1, 7);
Console.WriteLine(num);
Console.WriteLine(num1);
Console.WriteLine(num2);
Console.WriteLine(num3);
Console.WriteLine(num4);
Console.ReadKey();
为什么第一个是6 其他几个都是5?不是太懂
|