📅  最后修改于: 2022-03-11 15:00:48.191000             🧑  作者: Mango
string RandomStringGenerator(int lenght)
{
//string st = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";
string result = "";
for (int i = 0; i < lenght; i++)
{
char c = (char)('A' + Random.Range(0, 26));
result += c;
}
return result;
}