Hi.

I'm in need of some code which will generate random serial numbers for my software. It will also need to recognise whether a serial number passed in is valid, ie. it matches the format of codes which the program generates.

Can anyone point me in the right direction of articles etc, explaining how to do this please. Or, even better, point me towards c++ code already written, if possible.

Thanks,

Jim