in reply to Choose random element of array?

my $color = $colors[rand @colors];
perldoc -f rand -> perlfunc