/// <summary>
 /// Generate a random string consisted of letters
 /// </summary>
 /// <param name="length">length of the string generated</param>
 /// <returns></returns>
 public static string GenerateLetterStrings(int length)
 {
     RandomStringGenerator rsg = new RandomStringGenerator();
     rsg.IsUsingNumeric = false;
     rsg.IsUsingSpecialChars = false;
     return rsg.Generate(length);
 }
예제 #2
0
 public static int RandomInt()
 {
     return(Math.Abs(RandomStringGenerator.GenerateLetterStrings(10).GetHashCode() / 100));
 }
예제 #3
0
 public static string RandomString(int length)
 {
     return(RandomStringGenerator.GenerateLetterStrings(length));
 }