public static Random rNumber = new Random();//实例化一个随机数对象 public static int smm = rNumber.Next(0, 59);