samedi 4 juin 2016

rand() array doesn't change each time I run the code [duplicate]

For a small program I am running I am using the rand() function to provide numbers for an array of 23 integers. I found that every time I run the code, it reuses the same numbers that were used before in the array, so i'm never getting different results each iteration. How can I fix this problem?




Aucun commentaire:

Enregistrer un commentaire