Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.freenet.ag!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.131 X-Spam-Level: * X-Spam-Evidence: '*H*': 0.75; '*S*': 0.01; 'algorithm': 0.04; 'modify': 0.07; 'stack.': 0.09; 'worse': 0.09; 'cc:addr:python- list': 0.11; ':-p': 0.16; 'assignment.': 0.16; 'magic': 0.16; '(but': 0.19; 'properly': 0.19; 'stack': 0.19; 'cc:addr:python.org': 0.22; 'software.': 0.24; 'cc:2**0': 0.24; 'cc:no real name:2**0': 0.24; 'header:In-Reply-To:1': 0.27; 'to?': 0.30; 'message-id:@mail.gmail.com': 0.30; 'though.': 0.31; 'probably': 0.32; 'sense': 0.34; 'maybe': 0.34; 'could': 0.34; 'received:google.com': 0.35; 'there': 0.35; 'earth': 0.36; 'skip:& 10': 0.38; 'needed': 0.38; 'fact': 0.38; 'skip:& 20': 0.39; 'legitimate': 0.39; 'how': 0.40; 'affect': 0.61; 'real': 0.63; 'choose': 0.64; 'more': 0.64; 'school': 0.64; 'cards': 0.65; 'to:addr:gmail.com': 0.65; 'real-world': 0.68; 'study': 0.69; 'evaluate': 0.72; 'cut': 0.74; 'random,': 0.84; 'subject:Cutting': 0.84; 'cutting': 0.91; 'smoke': 0.91; 'outcome': 0.93 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=h2Hm3l0Rptm2/4Vceh0Tj7DubvUdKYDbrAK0dDZzgzg=; b=yv1qCKn5G4QJNFW7gQHIN5iZ6DZVQo2adSUJKsSxJWChSjAwfKVpTWV63AhmJ7Cb+v 9qezs8lJaoEpEq7lcy2JjD5dea13Nqx4uwkNU8O48s8b2+6n5q3Iq2RgH5x9qLp4g61o xFuggA+rMFg7L7bveO8WdQ66/OWltCwbtCKBJioIxW1OQ29QS3uylqrgL37yXNFMbRM7 NgWlXv6dDj9BrwQ8srkqEBbAzZvXMEehgP2A4+DIlaD0d8DntAByPnrD2hchGtvUmK7l aFLUkwZFLyOCMUpg+gO1RuvQMpY4OqGVolC5FrIVKgFWcKn1Vc/l5JivrP4ESQaUyNSQ lt6w== MIME-Version: 1.0 X-Received: by 10.14.45.4 with SMTP id o4mr632051eeb.86.1370026462239; Fri, 31 May 2013 11:54:22 -0700 (PDT) In-Reply-To: <4286e1af-f97c-4111-ab3d-cdf2e2fa5fa8@googlegroups.com> References: <4d02f46f-8264-41bf-a254-d1c20469626e@googlegroups.com> <4286e1af-f97c-4111-ab3d-cdf2e2fa5fa8@googlegroups.com> Date: Fri, 31 May 2013 12:54:22 -0600 Subject: Re: Cutting a deck of cards From: Modulok To: Lee Crocker Content-Type: multipart/alternative; boundary=001a1132e9d89d887704de082451 Cc: python-list@python.org X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 55 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1370026469 news.xs4all.nl 15966 [2001:888:2000:d::a6]:43895 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:46625 --001a1132e9d89d887704de082451 Content-Type: text/plain; charset=ISO-8859-1 > 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- --001a1132e9d89d887704de082451 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable

=
Why on Earth would you want to? "Cutting" a deck makes no sense i= n software. Randomize the deck properly (Google "Fisher-Yates") a= nd 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 h= uman dealers to stack a deck. Simulating it in software makes no more sense= than simulating the cigars you smoke while playing.


Perhaps the OP wa= nted 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&= #39;s no real
point.)

There could be a lot of legitimate re= asons though.
-Modulok-

--001a1132e9d89d887704de082451--