$=Random random;random.Next(1,9)
c# 语法中需要使用new来创建对象
$=Random random = new Random(); random.Next(10000);
感谢大佬解答,只学了c