in reply to Re: Random string generator
in thread Random string generator
For use in a function which is much easier to remember.
print randStr(8)."\n"; sub randStr { return join('', map{('a'..'z','A'..'Z',0..9)[rand 62]} 0..shift); }
|
---|
In Section
Seekers of Perl Wisdom