CRL.Person.UserMobileVerify.MakeRandomCode C# (CSharp) Method

MakeRandomCode() private method

生成随机码
private MakeRandomCode ( ) : string
return string
        string MakeRandomCode()
        {
            string chkCode;
            string character = "0123456789";
            //character += "ABCDEFGHIJKLMNPQRSTUVWXYZ";
            chkCode = "";
            Random rnd = new Random();
            //生成验证码字符串
            for (int i = 0; i < 6; i++)
            {
                chkCode += character[rnd.Next(character.Length)];
            }
            return chkCode;
        }