Clement we not giving code, we going to help peter fish n not give him the fish. :-D

basically u can design your own algo based on random number generation accompanied with a few rules, and if u storing them in a database(i advise) the u can quickly check their uniqueness by trying to save to a unique column.

check these out:- 
http://stackoverflow.com/questions/119107/how-do-i-generate-a-list-of-n-unique-random-numbers-in-ruby

http://effbot.org/pyfaq/how-do-i-generate-random-numbers-in-python.htm

if u have any questions don't hesitate :)

On Mon, Jul 12, 2010 at 7:16 PM, Clement Ongera <cnongera@gmail.com> wrote:
I had the opportunity to generate some voucher numbers that included
random number generation and some mathematical formulas. Sorry I don't
have the code but it was done in PHP.



--
Many Thanks.

Regards,
Clement Ongera.
_______________________________________________
Skunkworks mailing list
Skunkworks@lists.my.co.ke
http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks
------------
Skunkworks Server donations spreadsheet
http://spreadsheets.google.com/ccc?key=0AopdHkqSqKL-dHlQVTMxU1VBdU1BSWJxdy1fbjAwOUE&hl=en
------------
Skunkworks Rules
http://my.co.ke/phpbb/viewtopic.php?f=24&t=94
------------
Other services @ http://my.co.ke