If I understand you right you do not want just a single random element. You want all elements, but just in a random order, right?
If so you should have a look at Shuffle or List::Util::shuffle().
Jenda
Always code as if the guy who ends up maintaining your code
will be a violent psychopath who knows where you live.
-- Rick Osborne
Edit by castaway: Closed small tag in signature
In reply to Re: Pulling random elements from hash
by Jenda
in thread Pulling random elements from hash
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |