Hi,
I am using srand() and would like to create different random numbers
during a SINGLE execution of my program because I want to compare
random cases.
For now I have a switch statement within a loop, which does not do the
job. I get the same output from my simulator every time. Does it mean
that it actually can seed ONCE per program run?
Thanks
for(i=....; i++){
switch (i){
case 1: seed = 10; break;
case 2: seed = 20; break;
default: printf("error"); break
}
srand(seed);
//code that uses Random()
}