Ask coding questions

← Back to all posts
minecraftmake55 (5)

dice for a monopoly code game for python

ReplTalk (1698)

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 (1053)

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.