lundi 27 septembre 2021

How to generate numbers 0-5 randomly. But each number should be used twice only [duplicate]

How to generate random numbers from 0-5 twice each. For example the result should be something like this 0,1,0,2,1,3,4,2,3,4 but it should be randomly. The numbers should be used twice only. When i run it again the result should random again but the numbers should be used twice.




Aucun commentaire:

Enregistrer un commentaire