in reply to Help with random numbers

don't forget your friendly helper srand when you're digging through those man pages... it will help give you a different randomized number every time you run your program...

but it's all there in the docs...

magnus

Replies are listed 'Best First'.
Re: Re: Help with random numbers
by myocom (Deacon) on Mar 03, 2001 at 05:10 UTC

    Actually, in modern Perl, you don't need to explicitly call srand. Let Perl do it for you.