Facebook
From Morose Pudu, 3 Years ago, written in Plain Text.
Embed
Download Paste or View Raw
Hits: 141
  1. public static string NameGenerator()
  2.         {
  3.             string str = "";
  4.  
  5.             str += (char)rnd.Next('A', 'Z' + 1);
  6.  
  7.             int length = rnd.Next(2, 14);
  8.  
  9.             for (int i = 0; i < length - 1; i++)
  10.             {
  11.                 str += (char)rnd.Next('a', 'z' + 1);
  12.             }
  13.  
  14.             return str;
  15.         }