I am trying to get a print out when 2 die are rolled. However the results are not what i expected?? Can someone please help

- Code: Select all
`for x in range(1,30):`

throw1=random.randint(1,6)

throw2=random.randint(1,6)

total=throw1+throw2

if total%2==0:

print('you threw a even number')

if total%2==1:

print('you threw an odd number')

The Results are this:

you threw a even number

you threw a even number

you threw a even number

you threw a even number

you threw a even number

you threw a even number

you threw a even number

you threw a even number

you threw a even number

you threw a even number

you threw a even number

you threw a even number

you threw a even number

you threw a even number

you threw a even number

you threw a even number

Thanks