in reply to How do I select a random key from a hash?
$lh=(split "/",scalar keys %h)[0]; print ((keys %h)[int rand($lh)]); [download]
Originally posted as a Categorized Answer.