Re: [Tutor] Random Number Randrange

2007-02-12 Thread Alan Gauld
<[EMAIL PROTECTED]> wrote > When I use the function random.randrange(x,y) I never get the upper > limit y > in the list. I've tried the range 1,3 and never get 3. If I choose > 1,4 I > get 3 but never 4. Is the upperlimit actually >> print range(1,3) [1,2] HTH, Alan G.

[Tutor] Random Number Randrange

2007-02-12 Thread [EMAIL PROTECTED]
When I use the function random.randrange(x,y) I never get the upper limit y in the list. I've tried the range 1,3 and never get 3. If I choose 1,4 I get 3 but never 4. Is the upperlimit actually ___ Tutor maillist - Tutor@python.org http://mail.pyt