Read about srand.
If you seed the random number generator with the same value, you get the same sequence.
And for the duration of your program, time(0) likely doesn't change.
| CodeGuru Home | VC++ / MFC / C++ | .NET / C# | Visual Basic | VB Forums | Developer.com |
|
Results 1 to 7 of 7
Threaded View
|
Click Here to Expand Forum to Full Width |