That's not fair.
I guess it depends upon what the aim is. If you simple want an array shuffled quicky, doing it in place is totally fair.
But it doesn't seem to make a lot of difference in the benchmark time.
As the arrays being shuffled only have 4 elements, the in-placeness makes almost no difference, but once you start shuffling arrays of a few hundred items, it has a fairly dramatic effect.
In reply to Re^5: Is this a fair shuffle?
by BrowserUk
in thread Is this a fair shuffle?
by Roy Johnson
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |