Forgive me, but why are you setting $a like this:
$a = $_ + rand @{$r} - $_ and #...
It seems to me that it should simply be:
$a = rand @{$r} and #...
Just a bit confused is all... clarify?
In reply to Re: Re: random elements from array - new twist
by perlguy
in thread random elements from array - new twist
by felwick
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |