Hi All,
How can I use rand() for two different srand() seed values simultaneously??
Is there anyway to make two exclusive srand() seeds simultaneous??
Thanks In Advance.
Cheers
Hi All,
How can I use rand() for two different srand() seed values simultaneously??
Is there anyway to make two exclusive srand() seeds simultaneous??
Thanks In Advance.
Cheers
This is not possible with srand and rand. What you can do is to use the random number facilities introduced in C++11, or use some other PRNG implementation that allows you to have multiple independent sequences.
Look up a C++ Reference and learn How To Ask Questions The Smart WayOriginally Posted by Bjarne Stroustrup (2000-10-14)