Tag Archives: c++ tip

Don’t do srand(time(0)) while testing!

This is my smallest post, but extremely important. In C or C++, before generating random numbers we often end up doing So every time you run the program, you get new set of random numbers. Do you see the problem? … Continue reading

Posted in Programming | Tagged | 2 Comments