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!
Comment on
Re: rand() problems
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.
[reply]
Re: Re: Re: rand() problems
by
dws
(Chancellor)
on Feb 27, 2001 at 10:21 UTC
Newer perls call srand() for you implicitly. What version are you using?
[reply]
In Section
Seekers of Perl Wisdom