📜  1 到 100 之间的随机数 c# 代码示例

📅  最后修改于: 2022-03-11 14:49:03.355000             🧑  作者: Mango

代码示例5
Random randomName = new Random(); //only required once
Console.WriteLine(randomName.next(1, 101)); //the generated number is *equal or above* the min(1) and *bellow* the max(101)