My results:
Error rate = 1 every 10, errors = 100098 100545 99931 99905 99434 
Error rate = 1 every 100, errors = 10037 10075 9872 9924 10133 
Error rate = 1 every 1000, errors = 959 978 1012 1032 1041 
Error rate = 1 every 10000, errors = 97 100 109 92 86 
Error rate = 1 every 100000, errors = 11 11 9 12 7

What are you running this on (Machine/OS/Perl Version)? Also, rule of thumb is 30 trials for reliable statistical results. 100 is a safer bet.

Update:(PIII/2.4.18/5.6.1 w/ dev/random) Thanks Zaxo, although to clarify, I was most interested in what the original poster was running on.


In reply to Re: Re: Math all gone wrong... by dbp
in thread Math all gone wrong... by carlos fandango

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.