Random 6 digit code
Posted on 2006-07-20
I need to generate 250,000 6 digit unique random codes.
The codes must contain any alphanumeric characters but it must contain at least one of each.
These need to be placed into an access db to send to a print company.
I know coldfusion has several random functions but how to put them into practice is another thing entirely plus, i'm not sure how to stop duplicates and make sure every code has at least 1 number and 1 letter.
Can someone either show me an example, or point me to a place?
Thanks in advance