📜  c# 生成随机数 - C# 代码示例

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

代码示例6
// Creates a random number between 1 and 10
int randomNumber = new Random().Next(1, 11);