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