At the following: http://www.fredosaurus.com/notes-cpp/misc/random.html
It mentions that if we want to generate a random number in the range 1-10, we ca
1-10
random without ++1 would make random number in range of 0-9 like array in C goes from 0 to n, same in here. Very first number is 0 so to get 1-10 you add minimal value (1).