diff --git a/03_map.py b/03_map.py index c8c100d..aa0b8d2 100644 --- a/03_map.py +++ b/03_map.py @@ -263,7 +263,10 @@ def on_draw(): # init random -seed = random.randint(0, sys.maxsize) +if len(sys.argv) > 1: + seed = int(sys.argv[1]) +else: + seed = random.randint(0, sys.maxsize) print("Using seed: " + str(seed)) random.seed(seed)