C# 生成1-100的随机数

Random r = new Random();
int num = r.NextInteger(1,101);

posted @ 2019-06-11 19:38  grj001  阅读(1489)  评论(0编辑  收藏  举报