If I did
would 0 be a possible outcome? 4?Code:cout << rand()%4;
If I did
would 0 be a possible outcome? 4?Code:cout << rand()%4;
I am against the teaching of evolution in schools. I am also against widespread
literacy and the refrigeration of food.
Possible outcomes are 0, 1, 2, 3. Four is not possible.
mod % returns the reminder. Therefore, 8 % 4 has a zero remainder. While the remainder of 7 % 4 is 3 and 9 % 4 is 1. Four can never be a reminder.