A random password of the specified length.
The Membership.GeneratePassword(int, int) method is used to generate a random password and is most commonly used by the MembershipProvider.ResetPassword(string, string) method implemented by a membership provider to reset the password for a user to a new, temporary password.
The generated password only contains alphanumeric characters and the following punctuation marks: !@#$%^&*()_-+=[{]};:<>|./?. No hidden or non-printable control characters are included in the generated password.
The random password created by the Membership.GeneratePassword(int, int) method is not guaranteed to pass the regular expression in the Membership.PasswordStrengthRegularExpression property. However, the random password will meet the criteria established by the Membership.MinRequiredPasswordLength property and the numberOfNonAlphanumericCharacters parameter.