Actually, you don't even need the 'int' - it just slows things down. Faster still, store the number of elements in the array into a scalar:
@letters=(A..Z,a..z); $total=@letters; $newletter = $letters[rand $total];
In reply to RE: Re: Random letters
by turnstep
in thread Random letters
by alfredo
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |