Well it's not fair. Take 4 children for example. random 0 to 9 mod 4 does not have an even distribution over 0-4.
It's also more difficult to explain to children.
Well it's not fair. Take 4 children for example. random 0 to 9 mod 4 does not have an even distribution over 0-4.
It's also more difficult to explain to children.
That's true, but only because 4 never appears in the result. The possible results for modulo 4 are 0 - 3.
The first child is numbered zero. Shall I explain it in more detail?
n n % 4
-----------
0 0
1 1
2 2
3 3
4 0
5 1
6 2
7 3
8 0
9 1
10 2
11 3
12 0
13 1
14 2
15 3
> It's also more difficult to explain to children.And rewarding, unless you want your children to grow up innumerate.
if the stopwatch uses hex, then 0-3 will appear equally often in this case
> if the stopwatch uses hex ...
I think we're safely in the red herring zone now. :)
EDIT: Yes, of course -- when confronted by a correct and reasoned reply, downvote it to discourage any such mistakes in the future.
Digits, not digit, please, and do try to limit the anti-intellectualism and adversarial posture.
It certainly does -- the larger the random number, the fairer the outcome is.
> Even if you're using the seconds of a clock, it doesn't work for 7 children.
For a digits range of 0 - 59? Plus the fallback in the face of a precocious child of adding the number of minutes * 60?