Show maximum number of randoms

This commit is contained in:
mez 2025-07-27 12:25:06 +01:00
parent 93de038712
commit fd47368d5a

View file

@ -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))