|
|
| P is for Practical | |
| PerlMonks |
Re: Is this really random?by aitap (Chaplain) |
| on Nov 22, 2012 at 17:47 UTC ( #1005162=note: print w/ replies, xml ) | Need Help?? |
|
Well, actual probability of getting 5 heads and 5 tails is C(10,5)*p(head)^5*p(tail)^5 = (10!)/(5!*5!)*(0.5^5)*(0.5^5) = 0.24609375, so you probably won't always get this result.
Sorry if my advice was wrong.
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||