How to properly seed random number generator
Each time you set the same seed, you get the same sequence. So of course if you’re setting the seed to the time in a fast loop, you’ll probably call it with the same seed many times. In your case, as you’re calling your randInt function until you have a different value, you’re waiting for … Read more