<div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">&lt;rant&gt;<br>
It seems everyone has just been reading the first few words of Jan&#39;s<br>
email and not the actual content. &nbsp;Jan is clearly trying to write a<br>
*random list shuffling* function, not a function to generate<br>
permutations. &nbsp;Let&#39;s try to be helpful, people...<br>
&lt;/rant&gt;<br>
</blockquote><div><br></div><div>&nbsp;Agreed, I&#39;ve been quite confused by this thread. In the spirit of laziness, though, wouldn&#39;t it seem like the &quot;right&quot; method is to generate all the permutations lazily, and then choose a random element of that list?</div>
</div>