jeudi 5 octobre 2017

Generate random numbers until there is a repeat

I would like to generate random numbers in a fixed range (1-10) until a number is repeated. It then stops and records how many random numbers it took for there to be a repeat. This amount should be stored and done for 5 more trials.




Aucun commentaire:

Enregistrer un commentaire