This question already has an answer here:
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