random sub returns same results...

2003-04-05 Thread meriwether lewis
Hi Gurus! I have the following sub which creates a random string. Each time I call the sub in my perl script it returns a random string which is fine. The problem is every time I run the script the same strings are returned. I'm running perl 5.001 on Windows 2000. sub RandomStr { my $i=0;

Re: random sub returns same results...

2003-04-05 Thread Li Ngok Lam
perldoc -f srand - Original Message - From: meriwether lewis [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, April 05, 2003 10:09 AM Subject: random sub returns same results... Hi Gurus! I have the following sub which creates a random string. Each time I call the sub

Re: random sub returns same results...

2003-04-05 Thread Rob Dixon
Meriwether Lewis wrote: Hi Gurus! I have the following sub which creates a random string. Each time I call the sub in my perl script it returns a random string which is fine. The problem is every time I run the script the same strings are returned. I'm running perl 5.001 on Windows 2000.