Initializing Perl's rand

Alex Satrapa grail at goldweb.com.au
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).

Alex
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 225 bytes
Desc: not available
Url : http://lists.samba.org/archive/linux/attachments/20020625/4cb83d5f/attachment.bin


More information about the linux mailing list