I have a program in which random numbers need to be generated. The problem is that the numbers being generated are always in increasing order (3,6,10,13...). Every time a random number is generated I reset the seed with srand (time(NULL));.
Aucun commentaire:
Enregistrer un commentaire