programming-examples/perl/SystemFunction/Combine rand function and letter range to generate random letter.pl

2 lines
50 B
Perl
Raw Normal View History

2019-11-15 12:59:38 +01:00
$letter = ('a' .. 'z')[26 * rand];
print $letter;