Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed4.news.xs4all.nl!xs4all!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.125 X-Spam-Level: * X-Spam-Evidence: '*H*': 0.78; '*S*': 0.03; 'logic': 0.09; 'subject:question': 0.10; 'random': 0.14; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'guessing': 0.16; 'wrote:': 0.18; 'appears': 0.22; 'programming': 0.22; 'fairly': 0.24; 'header:In-Reply-To:1': 0.27; 'message-id:@mail.gmail.com': 0.30; "i'm": 0.30; 'received:209.85': 0.35; 'received:209.85.220': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'received:209': 0.37; 'to:addr:python-list': 0.38; 'pm,': 0.38; 'to:addr:python.org': 0.39; 'john': 0.61; "you're": 0.61; 'influence': 0.74; 'god.': 0.84; 'right!': 0.84; 'surface': 0.84; '2013': 0.98 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 :content-type; bh=cSl5K0bF8nKcdqCCd9ZM0tcpu4wSkcPbHR2TNZLS5vA=; b=nuufaO69cfXfRV2Gxl62FWX2fgkIltcTDXB6NW0OnvfHcOSphC0sIXvzDkReHrlvjx 7TzDNPMj0civBEk98f2BPK1UKHiNcPGCvncQW2RjF7e878OaCcOfzZTmwZrmZrPcO2vs E7iLEkGXCo02FtCWtENkZJb/1ROlv57xkfJyvVEoPLPalSh7y1QbcYFp+tO26ehNGVoh wkx0tnm5fDbMZzH7kaoMZbNpD44m/4RcX6Il1HWFqdX8PvrW9tkUvtJ4Q7XMI/gEFG2j BSl3m4jbhiJAdjXhKDa6xDA/kc4YOCtZ91/eECmaiz7f6IIflZqKjagNuW4IgugTEJLE bGTw== MIME-Version: 1.0 X-Received: by 10.220.215.73 with SMTP id hd9mr18392329vcb.19.1370334255137; Tue, 04 Jun 2013 01:24:15 -0700 (PDT) In-Reply-To: <1ba2ceec-f778-4c95-bf98-260fc48b4c3f@googlegroups.com> References: <323f2f5b-1f50-4689-90b8-74c411e43971@googlegroups.com> <1ba2ceec-f778-4c95-bf98-260fc48b4c3f@googlegroups.com> Date: Tue, 4 Jun 2013 18:24:15 +1000 Subject: Re: Beginner question From: Chris Angelico To: python-list@python.org Content-Type: text/plain; charset=ISO-8859-1 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: 13 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1370334257 news.xs4all.nl 15975 [2001:888:2000:d::a6]:43081 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:46857 On Tue, Jun 4, 2013 at 5:57 PM, John Ladasky wrote: > On Tuesday, June 4, 2013 12:45:38 AM UTC-7, Anssi Saari wrote: > >> BTW, did I get the logic correctly, the end result is random? > > You're right! I'm guessing that's not what the OP wants? I'm guessing that's exactly what the OP wants. This is a fairly classic programming puzzle; on the surface it appears that you have some influence on the outcome, but ultimately you're playing rock-paper-scissors with the Random Number God. ChrisA