How can I generate different random numbers at runtime?
I've tried
srand((unsigned) time(0));
But it seems to get me a random number on every startup of the program, but not on every execution of the function itself...
I'm trying to automate some tests with random numbers, random iterations, number of elements, etc... I thought I could just call
srand((unsigned) time(0));
at the beginning of my test function and bingo, but apparently not.
What would you suggest me to do?