in reply to Re: Randomising an array
in thread Randomising an array

The OP's shuffle does have a bug. It should have rand scalar @arr instead of rand $#arr. But if that is fixed (and "20" and "200" are changed to match each other), then it is a fair shuffle. However the OP's approach is still inferior to Fisher-Yates in that it has quadratic instead of linear running time (because of the splicing), and it does not shuffle in place like F-Y.

blokhead