in reply to How do I pick a random element from an array?

$randomelement = $array[rand @array];