I am thinking about generating random password with combination of numbers and alphabets.
There is a very popular way to generate random password:
public static string GetVoucherNumber(int length) { var chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789"; var result = new string( Enumerable.Repeat(chars, length) .Select(s => s[random.Next(s.Length)]) .ToArray()); return result; } However, as it depends on the Random class, and 2/3 of the string is alphabet. So, in theory, it is possible to generate a password with numbers/alphabets only.
For the reason, I am thinking about using
System.Web.Security.Membership.GeneratePassword(int length, int numberOfNonAlphanumericCharacters) Does it guarantee that the generated result would be a combination of numbers and a ...

Go to the complete details ...