c#输出12个介于60至80的随机数,要求随机数的输出结果是一样的
using System;
class Program {
static void Main(string[] args) {
Random rand = new Random(1);
for (int i = 0; i < 12; i++) {
Console.WriteLine(rand.Next(60, 81));
}
}
}
要求随机数的输出结果是一样的
啥意思?
你要是没看懂题,就把原题一字不差的放出来,别自己翻译