in reply to Re: random number generation problem
in thread random number generation problem

Please don't. As others have noted, Perl often does this for you. What they haven't noted is that when Perl does, it does a better job than you did.

For more details and suggestions of how to do it in a way that works for both old and new Perl, see Perl's auto srand() RE: a random sort of list.

        - tye (but my friends call me "Tye")
  • Comment on (tye)Re: random number generation problem

Replies are listed 'Best First'.
Re^2: random number generation problem
by tadman (Prior) on Apr 27, 2001 at 02:17 UTC
    During testing, I found it odd that rand() was producing random numbers without the use of srand(), which for the longest time was a strict requirement. Now, I would have deleted the node, but by the time I got around to doing that, the thread was growing like a weed.

    Just another one of those incredible things that changed but nobody really knew.