[Tutor] Can anyone help me?

R. Alan Monroe amonroe at columbus.rr.com
Fri Oct 28 04:23:09 CEST 2005


> 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?

Create (empty for now) list to hold your final numbers.
Have a for-loop that runs 6 times using range(6)
Inside the loop, just pick a random number and append it to your final
number list.

Alan



More information about the Tutor mailing list