jeudi 17 septembre 2020

Is there a way to ensure no items are repeated from a random list and output something if they all have been outputted?

I'm doing a song guessing game and all the songs are in a file and are randomly outputted after being processed to only show the first letter, however is there a way to ensure that no songs are repeated, due to it being random, and to make an end message if all of them have been outputted to the user. I couldn't really show the whole code or isolate the issue concisely so sorry for no examples, but I hope this is enough to go off. Feel free to ask any more questions! Thanks in advance




Aucun commentaire:

Enregistrer un commentaire