Combine rand function and letter range to generate random letter
$letter = ('a' .. 'z')[26 * rand]; print $letter;