Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: Random string generator

by t'mo (Pilgrim)
on Feb 06, 2003 at 15:58 UTC ( #233165=note: print w/ replies, xml ) Need Help??


in reply to Random string generator

Thanks to jmcnamara, we have this example:

perl -le 'print map{(a..z)[rand 26]} 0..rand 10'

which I have extended thusly:

perl -le 'print map{(a..z,A..Z,0..9)[rand 62]} 0..7'

and which you could extend as needed.


Comment on Re: Random string generator
Select or Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://233165]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (17)
As of 2015-07-06 20:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (82 votes), past polls