>I am looking for a way to generate a product key.
>
>I will be using a 30 digit number that is unique to an application and I
>need to generate a 10 to 20 digit key for it.
>
>What would be the best way to do this?
Do you mean that you will be generating a sequential primary key for a database? If so, there's a sample of how to do this in the stored procedures of TasTrade.dbc.
If not, please give us some more details of what you're trying to do.