//随机数 // Random //彩票中奖 Random r = new Random(); for (int i = 0; i <= 100; i++) { int a = r.Next(1001, 9999); Console.WriteLine(a); Thread.Sleep(100);//延时,单位毫秒需要添加 using system threaing; Console.Clear();//出来一个清空一个 } Console.WriteLine("中奖号码是;7889"); Console.ReadLine();
时间: 2024-11-05 16:00:54