Hi.
Im writing a program to do a random walk simulation. In essence it is a random number generator. I'm seeding from the system clock before decalring a loop using the rand() generator.
My question is....
If im seeding from the system clock, shouldnt the seed be different each time the program is compilled?
Here's how I innisiate the seed (srand) using the time.h library:
time_t curr_time;
srand( (unsigned) time(&curr_time));
Basically I'm defining the system time to be a variable called curr_time then assign the seed to be that value. If that is true srand should be different everytime the program is compilled but i have found it is not YET........the rand function is.........Im stumped.
Any help much appreciated