Is it possible to generate a different random number using two identical codes at the same time? And if it is possible any ideas would be very appreciating.
In more words: rand() operator return same number for every run.
After using srand ( time(NULL) ), the rand() operator return different number for every successive run. But if two identical codes are executed at the same time rand() of each codes still return the same number at the given time. How can I generate a different numbers at the same time without altering the codes?