Re: help with this game

From: Dan Bishop (danb_83_at_yahoo.com)
Date: 07/20/04


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.