Re: help with this game
From: Dan Bishop (danb_83_at_yahoo.com)
Date: 07/20/04
- Next message: Jacek Generowicz: "Re: Interactive Python programming in ... vi [was: Tab wars revisited]"
- Previous message: Antoon Pardon: "Re: unittest: Proposal to add failUnlessNear"
- In reply to: Sean Ross: "Re: help with this game"
- Next in thread: Nick Smallbone: "Re: help with this game"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 20 Jul 2004 01:11:41 -0700
"Sean Ross" <sross@connectmail.carleton.ca> wrote in message news:<0ddKc.34838$TB3.1337328@news20.bellglobal.com>...
...
> Oh, and
>
> a = random.randint(1, 100)
>
> should be
>
> a = random.randint(1, 101)
>
> if you want people to guess a number between 1 and 100, inclusive.
random.randint(1, 100) _can_ return 100. It's randrange that doesn't.
- Next message: Jacek Generowicz: "Re: Interactive Python programming in ... vi [was: Tab wars revisited]"
- Previous message: Antoon Pardon: "Re: unittest: Proposal to add failUnlessNear"
- In reply to: Sean Ross: "Re: help with this game"
- Next in thread: Nick Smallbone: "Re: help with this game"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]