0
While using srand() in c++, I get segfault 1 out of 10 times. Any possible solution to that?
It runs perfect the way I want 9 outta 10 times.
1 Respuesta
0
srand(time(null));
if u use rand to find an array index. make sure it isnt the size of the array. as that element doesnt exist.