Initializing Perl's rand

Alex Satrapa grail at
Tue Jun 25 09:59:57 EST 2002

On Monday, June 24, 2002, at 11:57 , Michael James wrote:

> Can anyone help me out here.
> I am using rand in perl.
> The book says it should get initialized (call srand) on the first 
> invocation.

Can you show us the code where you initialise srand, and the code where 
you call rand?

I have some experience with MacPerl (that's what I used when learning 
Perl 4 years ago).

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 225 bytes
Desc: not available
Url :

More information about the linux mailing list