Nathan, look at the functions in the random module. randrange() would be one potential candidate.
Alan G ----- Original Message ----- From: "Nathan Pinno" <[EMAIL PROTECTED]> To: <Tutor@python.org> Sent: Friday, October 28, 2005 3:07 AM Subject: [Tutor] Can anyone help me? Hey all, I am trying to create a program that draws 6 numbers between 1 and 49 at random for creating lottery tickets. I want to have a better chance when I play. Can anyone help me code this or show me how to, please? Thanks, Nathan Pinno For great sites go to: http://falcon3166.tripod.com MSN Messenger: [EMAIL PROTECTED],com Yahoo! Messenger: spam_swatter31 ICQ: 199020705 AIM: f3mighty _______________________________________________ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor