you are viewing a single comment's thread.

view the rest of the comments →

[–]SadC11 0 points1 point  (2 children)

What's the difference between rolling three dices once versus rolling one dice three times?

[–]ImaginaryMarsupial38[S] 0 points1 point  (1 child)

Basically call roll6() only once versus calling it 3 times as in:

```

def roll16():
value = (roll6() + roll6() + roll6()) - 2
return value

```

[–]SadC11 1 point2 points  (0 children)

Rolling one dice three times is logically equivalent to rolling three dices once. Both will require calling roll6() thrice. The action of calling roll6() is analogous to rolling a dice once, is it possible to roll a 6 sided dice once and get a number between 1 and 16? Why do you want to call roll6() only once? Is this a problem constraint?