Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f42d32c

Browse files
committed
BDFL agreed with Tim: rehabilitate randint().
1 parent 5961042 commit f42d32c

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

Lib/random.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -315,8 +315,6 @@ def randrange(self, start, stop=None, step=1, int=int, default=None):
315315

316316
def randint(self, a, b):
317317
"""Return random integer in range [a, b], including both end points.
318-
319-
(Deprecated; use randrange(a, b+1).)
320318
"""
321319

322320
return self.randrange(a, b+1)

0 commit comments

Comments
 (0)