Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Re^3: Monte Carlo - Coin Tossby johngg (Canon) |
on Mar 12, 2011 at 12:38 UTC ( [id://892818]=note: print w/replies, xml ) | Need Help?? |
As Eliya points out, 20 tosses could give 21 outcomes as regards the number of "tails" tossed, i.e. 0, 1, ... 19 or 20 so your way should be
and I would agree that your way is perhaps more idiomatic. However, I felt that
better illustrated the relation between the numbers of tosses and outcomes. What do others think? Cheers, JohnGG
In Section
Cool Uses for Perl
|
|