Jan-30-2019, 08:15 AM
(Jan-29-2019, 07:10 PM)Naito Wrote: the problem is that the value of ranint is a constant and not random while looping in a while loop.
I could not replicate your problem:
import random rounds = 0 while rounds < 3: dice1 = random.randint(1, 6) dice2 = random.randint(1, 6) dice3 = random.randint(1, 6) dice4 = random.randint(1, 6) dice5 = random.randint(1, 6) dice6 = random.randint(1, 6) print(dice1, dice2, dice3, dice4, dice5, dice6) rounds += 1 1 5 5 4 1 3 5 4 2 5 2 5 4 4 2 4 1 4
I'm not 'in'-sane. Indeed, I am so far 'out' of sane that you appear a tiny blip on the distant coast of sanity. Bucky Katt, Get Fuzzy
Da Bishop: There's a dead bishop on the landing. I don't know who keeps bringing them in here. ....but society is to blame.
Da Bishop: There's a dead bishop on the landing. I don't know who keeps bringing them in here. ....but society is to blame.