I don't see a thing wrong with your second shuffle. It works for me. Are you sure your testing was correct and applied to the arrays you thought?
There is no reason but, perhaps, economy, that an array reference is used there.
After Compline,
Zaxo
In reply to Re: Why do I need to shuffle an array by reference?
by Zaxo
in thread Why do I need to shuffle an array by reference?
by ajdelore
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |