This works, but I suspect it isn't the best way to do it. As you can tell, it only returns uppercase letters ("A" .. "Z"). Is there a better way to go about this?my $string; for (0..7) { $string .= chr( int(rand(25) + 65) ); } print "$string\n";
In reply to Random string generator by ibanix
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |