in reply to rand() problems

Stop calling srand!

-- Randal L. Schwartz, Perl hacker


update: and danger got the rest of the problem worked out. Good job!

Replies are listed 'Best First'.
Re: Re: rand() problems
by Hyperiris (Initiate) on Feb 27, 2001 at 10:19 UTC
    It doesn't work without the srand, either. I originally didn't have it in there.
      Newer perls call srand() for you implicitly. What version are you using?