Im making a keygen which generates random passwords and I create another programme which accepts that keygen and does something, So i need to generate 10 digit codes as per some definitions, So in the other programmes it checks if the code is matching the sequential definition, how make it?