You made the same error I did originally, you attempted to solve "no repeating characters" rather than "no more than two repeating characters".
Furthermore, your code never uses the last character of the set.
In reply to Re^2: Random data generation.
by ikegami
in thread Random data generation.
by BrowserUk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |