Randomly generate 4 or 5 digit Unique Codes in Subsequent Runs of the Script

I would suggest that you generate all possible 4 and 5 digit numbers, shuffle them (use random.shuffle()) and then save to file. Then you could pick them every day by 10.

Browse More Popular Posts

Leave a Comment