PotD – Bank Password

From Problem Of The Day:

The problem goes like this. A user is asked to create a password that is 7 digits where none of the numbers can repeat. In addition to this requirement none of the numbers can be in a direct sequence (6 and 7, 7 and 6, or 9 and 0). Create a program to generate a random password for this bank that fits their rule set.

Back to top ▴