I am using Microsoft Visual Studio 2005, and I can use Microsoft Visual Studio 2008 if necessary.
I am using rand_s() to generate pseudo-random numbers.
I tried rand(), but it was too limited. However, rand() does repeat the same sequence of random numbers depending on the initial seed set using srand().
I have successfully incorporated rand_s() in my code, but it does not repeat.
I would like to generate a sequence of random numbers that can be repeated for development and debugging purposes.
Can this be done using rand_s()?
Or is there another approach to generating pseudo random numbers that I could implement?
Note: this is strictly a matter of personal interest. I do not have the need, time or resources to implement an "industrial strength" pseudo-random number generator.