Add random cards function
This commit is contained in:
parent
69e16ca5a9
commit
14cf962e4c
1 changed files with 9 additions and 0 deletions
|
@ -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")
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue