public static GetTrulyRandom ( ) : |
||
return |
public static string RandomString(bool guid = false) { string res = ""; Random rg = Utils.GetTrulyRandom(); for (int i = 0; i < rg.Next(3, 7); i++) { res += (char)rg.Next((int)'A', (int)'Z' + 1); } if (guid) { res += rg.Next(1000, 100000); } return(res); }
public static string RandomLetter() { Random rg = Utils.GetTrulyRandom(); return(((char)rg.Next((int)'A', (int)'Z' + 1)).ToString()); }