jeudi 24 mars 2016

How to generate random numbers using c++11 without repetition

I want to generate about 1000 random numbers without repetition, (I used to do it by usind rand() function, but I have to learn how to do it in c++11). My question is how should I do it in the simple, fast way. Of course I was thinking about Set container, but my teacher did not allow me using it.




Aucun commentaire:

Enregistrer un commentaire