string passwordChars = "abcde...123...";
Random random = new Random();
int passwordLength = random.Next(5,7);
StringBuilder password = new StringBuilder(passwordLength)
for(int i = 0; i < passwordLength; i++)
password.Append(passwordChars[random.Next(0, passwordChars.Length)]);