mercredi 1 septembre 2021

Why is it not choosing a random function and instead been running the lists in order [duplicate]

Why does it run the list in order and how can I make it choose randomly? I am really really new to python

def chooseOutcome():
 #random choice
 functionList = [heavyHeal("water"), heavyHeal("bandages")]

 random.choice(functionList)
 #random choice end



Aucun commentaire:

Enregistrer un commentaire