This question already has an answer here:
I'd like to create a program which will generate random numbers between 1 and 30 until all numbers have been generated once. Essentially, I want to generate random numbers which will never be generated again afterwards.
import random
test = random.randint(1, 30)
This is what I have so far, but of course, a number already generated will be generated again.
Aucun commentaire:
Enregistrer un commentaire