in reply to Why do I need to shuffle an array by reference?
Oops... You are right. The code I posted works. <wipes egg off face>
When I was having problems, I was getting something that I suspected was an off-by-one error, as elements of the list were being duplicated.
Likely, when I changed it from directly referencing the list back to using a reference, I fixed some sort of typo or error that I was making elsewhere.
Thanks to all for the feedback, and also ++Abigail-II for pointing out next is unneccessary.
</ajdelore>
|
|---|