What does " rand()% 11" and what's the diffrence between this and "rand()% 10+1"? : <p>I know that rand() generates a random number and that % operator returns the rest of the division but what I don't understand is why do we Have to use it here why can't we just give a max number directly like 10 for example</p>
