I am a VB6 programmer and I need a custom serial number generator utility created that I don't have the time for. It will create either 100, 500, 1000 or 5000 random serial numbers with a format similar to:
HYFP-S76Y-S34C-YP58-K6R2
where the first four characters are user defined and the balance are groups of 4 characters mixed alpha and integers.
The utility will generate an ascii text file that contains the unique non-duplicated serials. The alpha will all be masked uppercase. More in detailed description.
## Deliverables
I need a custom serial number generator utility created that I don't have the time for. It will create either 100, 500, 1000 or 5000 random serial numbers with a format similar to:
HYFP-S76Y-S34C-YP58-K6R2
where the first four characters are user defined and the balance are groups of 4 characters mixed alpha and integers.
The utility will generate an ascii text file that contains the unique non-duplicated serials.
The First four characters will all be alpha and entered by the end-user via a text box on the main screen. Next note there are 4 groups of alpha numeric separated by a dash. I do not want similar charcters such as 1 and l, so here are the allowed charceters and numbers for the groups.:
Numeric: 23456789
Alpha: ABCDEFGHJKMNPQRSTUVWXYZ
The four groups will be randomized in that there will not be any set pattern in the four alpha/numerci mix. It could be:
1BB2 or BB12 or B1B2. Each of the four groups of for alpha/numeric should follow no predictable pattern.
When the enduser enters the FIRST four alpha (force all caps) you will ten append the 4 groups of the random alpha/numeric and append the a text file making SURE that there are NO duplicates existing in the [login to view URL] TWO in the list may be exactly the same and there should not be any pattern to the list.
When the end-user clicks the "generate" button and selects the quantity from a radio option list, the program will prompt for a file name and save to the c:\webactivation directory which you will create on the fly if it doesn't
t exist.
The final result will be a text file, example: c:\webactivation\[login to view URL]
and will contain either 100, 500, 1000 or 500 UNIQUE serials in the pattern described above with NO duplicates.
If the enduser wants to "view" the serail just generated, then and a "View" menu item or button and let him browse to the c:websactivation folder and choose a file, then display it in a scroll text box as a popup with the ability for him to "copy" the contents into the clipboard.
I need you to throughly comment the code so I can foillow your logic. I am easy to work with and will accept suggestions and ideas.