So, I was curious how someone could get random values across multiple threads with the rand_r command. If I used time(NULL) for the seed everyone ends up with the sam seed because the threads are created so close together. There actions are all based on that random seed, so all the threads remain identical for the remainder of my program. How would one get [ USING RAND_R(*int seed) ] a random number that differed across all threads?
Thanks in advance.