public static string GetRandomString(int intSize)
        {
            StringBuilder strBuilder=new StringBuilder();
            Random rndObject=new Random();
            for (int IndCar=0; IndCar<intSize; IndCar++)
            {
                int intRandom=Convert.ToInt32(Math.Floor(26*rndObject.NextDouble()+65));
                char carRandom=Convert.ToChar(intRandom);
                strBuilder.Append(carRandom);
            }
            rndObject=null;
            return strBuilder.ToString().ToLower();
        }

相关文章:

  • 2022-12-23
  • 2021-12-29
  • 2021-09-28
  • 2021-09-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-12-13
  • 2022-12-23
  • 2021-05-22
  • 2021-08-15
  • 2021-12-14
  • 2022-12-23
  • 2021-06-19
相关资源
相似解决方案