dimanche 26 janvier 2020

How to generate a bunch of lists of random numbers which have no repeats but in a certain range with Python?

I actually need to generate a bunch of lists of random numbers in the range of 1 to 5. I know how to generate a single list of random numbers in the range of 1 to 5 with shuffle module, but what if I want a bunch of such stuffs? I have no idea to use loop ,is there anyone can help? Many appreciates~




Aucun commentaire:

Enregistrer un commentaire