Re: [Tutor] Random Numbers

2005-11-20 Thread Hugo González Monteverde
Hi, Take a look at the random module, function randint: >>> import random >>> random.randint(1, 10) 7 >>> random.randint(1, 10) 9 >>> random.randint(1, 10) 1 >>> random.randint(1, 10) 8 >>> random.randint(1, 10) 7 >>> random.randint(1, 10) 9 >>> random.randint(1, 10) 1 >>> random.randint

Re: [Tutor] Random Numbers

2005-11-20 Thread John Fouhy
On 21/11/05, Merrie <[EMAIL PROTECTED]> wrote: > Ok first thing I need a direction on is random number generation, I looked > through the Python manual and I must be missing it. > > What Im looking for, needing is a random generation 1 through 10 + modifier, > example like rolling a 1d10 +1 Hi Me

[Tutor] Random Numbers

2005-11-20 Thread Merrie
Ok first thing I need a direction on is random number generation, I looked through the Python manual and I must be missing it.   What Im looking for, needing is a random generation 1 through 10 + modifier, example like rolling a 1d10 +1   Not sure what syntex to use.   Thanks! Merrie ___