Hi Gary,
Gary Yang wrote on Wed, Jan 30, 2008 at 03:54:51PM -0800:
> I need to get a random number whenever the perl script is called.
> Each time the random number I got should be different.
> I use that number to name generated files, i.e. I want the perl
> script to generate different file nam
Gary Yang wrote:
> Hi,
>
> I need to get a random number whenever the perl script is called. Each
> time the random number I got should be different. I use that number to
> name generated files, i.e. I want the perl script to generate different
> file names whenever it is called. Can someone
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Hi Gary,
Look up the rand and srand functions in the perl man pages/help files. I'll
answer here,
anyhow, for the benefit of anyone else trying to do something similar..
For your purposes, creating unique files, I would not rely on random number (a