http://qs321.pair.com?node_id=7354


in reply to Random letters

The easiest way I can see to do it would be taking the random number you get and using it as an index into an array of letters. Something that looks like the following:
@letters = ('a'..'z'); # or ('A'..'Z') or ('a'..'z', 'A'..'Z'), etc +. $letter = $letters[ int rand scalar @letters ];
Which could be further condensed down if you only wanted to use this method once and wanted to make your code a little harder to read.