string schars = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";
string name = string.Empty;
Random rand = new Random(DateTime.Now.Millisecond);
while (name.Length < 6)
name += schars[rand.Next(0, schars.Length)];
No comments:
Post a Comment