In case of numeric passcodes, e.g. for numeric locks on doors etc, anyone can agree "poor passwords" are ones with specific pattern, e.g. 1234, 1111, 2468, 1122, etc. (as well as ones that form a clear graphical pattern on the keypad, e.g. "cross", 159-357)
If I want to generate a lot of random numeric passcodes, it's a matter of a trivial random number generator - except it's quite possible it will generate any of the "dictionary" keycodes by chance. With a small number it's easy to avoid them simply by discarding any that "looks easy", but what if I want to automate the process?
How can I create random numeric passcodes, discarding all the "easy" ones automatically?