in reply to Re: Perl rand() generates larger numbers for small sample size, bug!
in thread Perl rand() generates larger numbers for small sample size, bug!

If you think you've found a show-stopping bug in a core function that others have been using successfully for years or decades, it's a good idea to examine your own code before declaring it a bug in Perl.

My understanding is not that the OP claimed to have found a bug in rand, but asked a question because his or her tests did not behave as expected. OK, the test was buggy, and it is very good that you pointed out where the mistake is, but no reason to be harsh on the OP. After all, we all make mistakes (well, at least I do), actually, making mistakes is a great way to learn how not to make them again.
  • Comment on Re^2: Perl rand() generates larger numbers for small sample size, bug!

Replies are listed 'Best First'.
Re^3: Perl rand() generates larger numbers for small sample size, bug!
by Anonymous Monk on Aug 08, 2014 at 10:14 UTC
    My understanding is not that the OP claimed to have found a bug in rand

    The subject of the thread is "Perl rand() generates larger numbers for small sample size, bug!"

    Anyway, mistakes are fine, but if one finds oneself saying "I found a bug" but also "I am not an expert", perhaps more cautious wording or some double-checking before crying wolf is in order :-)

Re^3: Perl rand() generates larger numbers for small sample size, bug!
by Bethany (Scribe) on Aug 08, 2014 at 13:20 UTC

    You're right, of course. I was trying to be constructive rather than harsh. In fact, one of my previous replies contained the very same advice you give in your last sentence.

    If my reply came off as a flame, however mild and non-scorchy, Ravi and you both have my apologies.