http://www.perlmonks.org?node_id=219912


in reply to Re: Re: random number
in thread random number

#splice is still O(n) $array[$index] = $array[-1]; pop @array;