<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
Why on Earth would you want to? "Cutting" a deck makes no sense in software. Randomize the deck properly (Google "Fisher-Yates") and start dealing. Cutting the deck will not make it any more random, and in fact will probably make it worse depending on how you choose the cutpoint.<br>
<br>
The purpose of "cutting" cards is to make it more difficult for human dealers to stack a deck. Simulating it in software makes no more sense than simulating the cigars you smoke while playing.<br><span class=""><font color="#888888"><br>
</font></span></blockquote><div><br></div><div style><div>Perhaps the OP wanted to study the efficiency and affect of a real-world</div><div>shuffling algorithm :-p Maybe he was designing a probabilistic magic trick and</div>
<div>needed to evaluate how a cut would modify the outcome of a particular stack.</div><div>Maybe it was a school assignment. Who knows?</div><div><br></div><div>(But yeah if the purpose was for pure randomization then there's no real</div>
<div>point.)</div><div><br></div><div>There could be a lot of legitimate reasons though.</div><div>-Modulok-</div></div></div><br></div></div>