Thank you for all the contributions, they taught me alot. But perhaps I should be more clear about my situation.
I would like to generate serials like 32jhdau3 (alpha numeric)
perhaps 30 thousand to a million of them.
The problem is I do not want to enter the serials into a database, then when a user use it to register my software or whatever I am using the serial for, I have to open database, extract data etc. It makes the process slow if it has a million data.
I would prefer a 2 way algorithm something like the mod10 algorithm but harder to derive, before I wouldn't want any users to run the mod and generate another million identical numbers.
Scenario
Generating : Algorithem -> dksad820i
Validating : dksad82oi -> Algorithem -> Derive to a number.
To generate the numbers i can simply do a while loop from 000000000 -> 999999999 to go through the algorithem, if it derives to the number den it will be recorded down. Once its recorded down it would go through another algorithem to become alpha numeric (which should also be a 2 way algorithem).
Any help?
A little too much to ask for I guess...