<div dir="ltr">Hi Eli<div><br></div><div>I tried to squeeze out a little more efficiency, hopefully not at the expense of too much loss of clarity, but I'm not overly fussed which exact version of Fisher-Yates is (hopefully ;-) adopted.<br></div><div><br></div><div>[Sorry for drawing you further in.]</div><div><br></div><div>My take on your 3 points:</div><div><ol><li>Fisher-Yates is only a few lines, so although not a one-liner, it seems reasonable to use  it for the better space and time performance.</li><li>I agree that an inside-out version is more apt.</li><li>On my reading the final point is an issue if (random n) has problems like modulo bias, but if that's the case surely it is (random n) that needs fixing.</li></ol><div><br></div><div>Dan</div></div><div class="gmail_extra"><div dir="ltr"></div>
</div></div>