Your data structures look more like arrays. The standard idiom for a random selection from an array is $array[rand @array]. If you want a shuffle, there is one in List::Util.
After Compline,
Zaxo
In reply to Re: Select randomly from a hash
by Zaxo
in thread Select randomly from a hash
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |