Randomization is kind of annoying in C++