Perl Monk, Perl Meditation | |
PerlMonks |
Re: Random lettersby plaid (Chaplain) |
on Apr 12, 2000 at 04:10 UTC ( [id://7354]=note: print w/replies, xml ) | Need Help?? |
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:
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.
In Section
Seekers of Perl Wisdom
|
|