Kyle R. Conway is a user on mastodon.social. You can follow them or interact with them if you have an account anywhere in the fediverse. If you don't, you can sign up here.
Kyle R. Conway @K_REY_C

πŸ˜… link feature broke code!

from random import randint

these values to:
## Roll different numbers of dice
## Roll different values of dice
total_dice = 5
dice_val = 20

rolls
rolls = []

the dice
for i in range(total_dice):
roll = randint(0, dice_val)
rolls.append(roll)

Header Row
print("Roll #\tof d" + str(dice_val))
print("------------------")

dice rolls in order
for i in range(total_dice):
print("#" + str(i+1) + ":\t" + str(rolls[i]))

Β· Web Β· 0 Β· 0