From fd47368d5af34bfa6daddb1c60c439c5b4259876 Mon Sep 17 00:00:00 2001 From: Mez Date: Sun, 27 Jul 2025 12:25:06 +0100 Subject: [PATCH] Show maximum number of randoms --- tools.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools.py b/tools.py index 9f69367..bb7aacd 100644 --- a/tools.py +++ b/tools.py @@ -825,7 +825,6 @@ def studio(): print("Nothing requested") def randoms(specials=False): - totalrandoms = int(input("How many? ")) pool = [] for card in colors.cardlist: if card["priority"] == 4 and card["dupe"] == False and card["colour"] != "sig" and card["colour"] != "limited": @@ -834,6 +833,7 @@ def randoms(specials=False): else: if card["colour"] != "special": pool.append(card["name"]) + totalrandoms = int(input("How many? (maximum " + str(len(pool)) + ") ")) try: chosen = sorted(random.sample(pool,totalrandoms)) print(", ".join(chosen))