Random Numbers in Perl

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: Jason
Date:  
Subject: Random Numbers in Perl
George Gambill wrote:
> Some systems suggest using the rand() function with a negative seed causing
> the system to get the seed from the computer clock. Then they recommend
> subsequent rand() function calls without a seed. You may want to play with
> this. I have always considered it good enough. YMMV


Well, I did stick the recommended call to srand in the sample code...



-- 
jkenner @ mindspring . com__
I Support Linux:           _> _  _ |_  _  _     _|
Working Together To       <__(_||_)| )| `(_|(_)(_|
To Build A Better Future.       |                   <s>