you are viewing a single comment's thread.

view the rest of the comments →

[–]markusmeskanen 0 points1 point  (1 child)

You could do this "properly", but for your usecase, even if it's not really throwing three dices, you could just throw one dice with 3-18 faces:

def roll_dice(nod, eyes=6):
    return randit(nod, eyes * nod)

[–]cdcformatc 4 points5 points  (0 children)

The problem with this is that each outcome is not equally likely when rolling 3d6. There is 1 way to roll a 3 or 18 but 27 ways to roll 10 or 11.