Randomize order of dice on the board

This commit is contained in:
2022-03-18 11:54:08 -04:00
parent daf7fb7a9a
commit 1c2614ddb7
+2 -1
View File
@@ -1,5 +1,5 @@
from sys import argv
from random import randint
from random import randint, shuffle
from math import sqrt
def readDiceFile(path):
@@ -31,6 +31,7 @@ if __name__ == '__main__':
print('Usage: python3 board_randomizer DICE_FILE')
else:
dice = readDiceFile(argv[1])
shuffle(dice)
rolls = rollDice(dice)
# Format dice rolls for boards file