This topic is now archived and is closed to further replies. seed or not to seed (in each iteration)

This topic is 5674 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I agree. If you''re using srand(time(NULL)), then since time() changes only once per second, you''ll get the same set of random numbers more than you''d expect.

The only time that you should re-seed the generator is if you really want to generate the same set of numbers again.

Share this post

Link to post
Share on other sites