in reply to Re: A Random Fortune Cookie
in thread A Random Fortune Cookie
Or do I miss a math trick to even the choices?
Actually it should work fine.
You have to think it from the end, the n'th line has a 1/n chance which is correct.
The line before is competing with the rest and has a 1/(n-1) chance, which is correct. °
And so on, proof by induction.
Indeed clever! =)
°) because the lines before have a combined chance of (n-1)/n and you have to multiply the odds. This leaves line n-1 with a chance of 1/n over all. .. :)
Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: A Random Fortune Cookie
by Your Mother (Archbishop) on Mar 10, 2021 at 17:27 UTC | |
by LanX (Saint) on Mar 10, 2021 at 17:53 UTC |