Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

RE: RE: Random letters

by plaid (Chaplain)
on Apr 12, 2000 at 05:07 UTC ( [id://7356]=note: print w/replies, xml ) Need Help??


in reply to RE: Random letters
in thread Random letters

Several comments about this. First of all, you would need to mod random_number by 26 to make sure you get a valid letter (or 52 if you want lowercase too, the lowercase letters follow the capital ones ascii-wise). Secondly, This is not an internationally or long-term safe way of doing it, as assuming 65 is 'A' may break things for someone coming from an international character set, or if (heaven forbid) the ascii table were to change years down the line. In general, something like 'A'..'Z' is safer.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (6)
As of 2024-04-19 09:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found