Synchronization of old projects

Part1
This commit is contained in:
2025-09-30 16:46:01 +08:00
parent 116b65164b
commit 4e1548abe2
167 changed files with 8668 additions and 43 deletions
+24
View File
@@ -0,0 +1,24 @@
using System;
namespace
{
class Program
{
static void Main(string[] args)
{
#region
//固定写法
// Random 关键字
Random r = new Random();
#endregion
#region
int i = r.Next(); //生成一个非负随机整数
Console.WriteLine(i);
i = r.Next(100); //生成一个非负随机整数,范围为[0, 100)
Console.WriteLine(i);
i = r.Next(50, 100); //生成一个非负随机整数,范围为[50, 100)
Console.WriteLine(i);
#endregion
}
}
}