|
|
| Perl: the Markov chain saw | |
| PerlMonks |
Re: Renaming an image fileby aquarium (Curate) |
| on Nov 28, 2010 at 22:21 UTC ( #874142=note: print w/ replies, xml ) | Need Help?? |
|
does the number absolutely need to be random..or just unique? 00000001 consecutively increasing to 99999999 works for me as "unique" identifiers. you can always pick up where you left off, finding largest current number in filenames in the directory. you could always append a pseudo-random number after the initial sequence number, to prevent easy guessing. the hardest line to type correctly is: stty erase ^H
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||