dimanche 29 juillet 2018

Generating a random number in C++

How can I generate random numbers between two numbers provided that the random numbers will never ever repeat themselves, if the computer has generated all random numbers between the 2 numbers , then it should return null value. I tried using rand() and random() but the numbers were repeatin after certain interval. I tried using Google too but Unfortunately couldn't get anything relevant.




Aucun commentaire:

Enregistrer un commentaire