Choose an even number between four and 16 for the length of your redemption code. Select a longer code if you plan on distributing a large number of codes.
Generate a large number of random codes. Use a random alphanumeric string generator (see References for an example) to simplify the generation process.
Enter the random redeem codes into a database program, such as SQL.
Run a report script to identify any potential duplicate codes. Remove the duplicate codes so that each code occurs only once.
Assign a redemption value to each code. Identify a column in your database as the redemption value. Enter the redemption value for each code in the appropriate column next to the redeem code.