C#生成6位随机验证码

1 private string VerifyCode()
2 {
3     Random random = new Random();
4     return random.Next(100000, 999999).ToString();
5 }