How you do it is up to you, but it might help to think of your set of possible password characters as a pack of cards, and consider how you could select 8 cards at random...
Type: Posts; User: dlorde
How you do it is up to you, but it might help to think of your set of possible password characters as a pack of cards, and consider how you could select 8 cards at random...
Break it down into tasks:
1. How to generate a random lowercase letter or digit.
2. How to avoid more than 2 of the same character.
3. How to stop when you have 8 characters.
4. How to ensure the...