From 1c2614ddb74bf09f4ee82abc21d93d11f43719d4 Mon Sep 17 00:00:00 2001 From: Cameron Blankenbuehler Date: Fri, 18 Mar 2022 11:54:08 -0400 Subject: [PATCH] Randomize order of dice on the board --- board_randimizer.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/board_randimizer.py b/board_randimizer.py index b2500e2..474d4ab 100644 --- a/board_randimizer.py +++ b/board_randimizer.py @@ -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