diff --git a/colors.py b/colors.py index e4e97e4..feac3d8 100644 --- a/colors.py +++ b/colors.py @@ -1717,6 +1717,15 @@ def studio(): studiostring += "\"exchange\":{\"dupes\":" + str(dupeswant) + ",\"new\":" + str(newwant) + ",\"sigs\":" + str(sigswant) + ",\"choice\":" + str(choicewant) + ",\"special\":" + str(specialwant) + "}}" print("\n" + studiostring) +def randoms(): + totalrandoms = int(input("How many? ")) + pool = [] + for card in cardlist: + if card["priority"] == 4 and card["dupe"] == False and card["colour"] != "special" and card["colour"] != "sig" and card["colour"] != "limited": + pool.append(card["name"]) + chosen = random.sample(pool,totalrandoms) + print(", ".join(chosen)) + if __name__ == "__main__": print("Building index page")