In fact, that's so simple, we usually just code it "in-line".sub pick_one { return $_[rand @_]; }
-- Randal L. Schwartz, Perl hacker
In reply to RE: Randomly Choose an Element from an Array
by merlyn
in thread Randomly Choose an Element from an Array
by sinan
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |