Ask coding questions

← Back to all posts
help
minecraftmake55 (4)

dice for a monopoly code game for python

Commentshotnewtop
ReplTalk (721)

Hey there, please make sure your post body is at least 10 words and 100 characters. That makes it easier for our community to help you!

Zavexeon (760)

You could do something like this.

def roll():
    return randint(0, 6) + randint(0, 6)

This will simulate the roll of two 6 sided dice.