4 ms·
That's only fair if you have 2, 5, or 10 kids.
by GeneralMayhem 12y ago
That's only fair if you have 2, 5, or 10 kids.
- lutusp 12y agoWhat? Have you thought this through? 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
- huhtenberg 12y agoOnly N first digits are accepted, whereby N is a number of children. Otherwise you re-draw.
- lutusp 12y agoAnother way to say it is that if a glance at the last clock digit turns out to be equal to to less than the number of children, it's accepted as the result, otherwise the operator looks away for a suitable interval and tries again. In other words, digit(s) modulo children.
- deleted 12y ago[deleted]
- lotharbot 12y ago> " tries again.... In other words, digit(s) modulo" "Try again" and "modulo" do not mean the same thing. Try again means you discard a result outside of the range, and then generate a new number without any reference to the value of the first try. If you have 7 kids and you're picking 0-9, you discard any results of 7-8-9 (or 8-9-0) and try again. Modulo means you take a result outside of the range, divide it by the range, and use the remainder (which is guaranteed to be in the range) as your new answer. The problem with this approach is that it's not evenly distributed -- if you have 7 kids and digits 0-9, three of your kids will get double chances. Even if you use 0-59 as your range, some of the kids will have 9 chances and others will have 8 chances.