I want to specify a number, and then get a set of random numbers. However, I want these numbers to be the same regardless of which computer I run it on (provided that I put the same seed).
Basically, my question is: in C ++, if I use rand(), but put srand()with a custom seed, and not with the current time, can I generate the same random number stream on any computer?
source
share