Random rd = new Random(); string Str = rd.Next(30, 150).ToString();//30到150随机数 转载于:https://www.cnblogs.com/snow-zhang/p/10104748.html