You're wanting to generate a random 12 digit number A-Z & 1-9 to put on the coupons right? If so I'd go with a random password generator. There's a web based one at
http://www.winguides.com/security/password.php It's quick but it might not be as secure as you'd want for a business coupon code.