[Tutor] Need help with python game program
metolone+gmane at gmail.com
Wed Jul 1 02:56:14 CEST 2009
"jonathan wallis" <mindboggler12 at gmail.com> wrote in message
news:57b8984c0906301738w1fb0e660m6bb2123399f27a0e at mail.gmail.com...
> My problem is simple, is their a way to make a variable equal multiple
> numbers? Such as X = 5 through 10, and then the program makes x equal
> something random 5 through 10, or something similar.
Use the random module. There are various types of random number generation
there, such as:
x = random.randint(5,10)
More information about the Tutor