Cutting a deck of cards

Modulok modulok at gmail.com
Fri May 31 14:54:22 EDT 2013


> 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.
>
> 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.
>
>
Perhaps the OP wanted to study the efficiency and affect of a real-world
shuffling algorithm :-p Maybe he was designing a probabilistic magic trick
and
needed to evaluate how a cut would modify the outcome of a particular stack.
Maybe it was a school assignment. Who knows?

(But yeah if the purpose was for pure randomization then there's no real
point.)

There could be a lot of legitimate reasons though.
-Modulok-
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20130531/d4324dcf/attachment.html>


More information about the Python-list mailing list