I'm trying to make a simple command line game in python. The only problem is that when I want to make the question randomly display, they don't. I will show you the current method I'm using to pick the functions (questions) out.
while 1:
questionList = [Question1(), Question2(), Question3(), Question4(), Question5()]
newList = random.shuffle(questionList)
print(newList.pop())
print("Checking question list\n")
I've also used random.sample and no luck with that either :/
Please help ^-^
Aucun commentaire:
Enregistrer un commentaire