I want to use
np.random.randint(4, size=2)
to generate a pair of distinct random numbers from 0 to 3. The problem is that it sometimes gives (0,0), (3,3) etc. Is there a way to force the numbers to be distinct?
Aucun commentaire:
Enregistrer un commentaire