mirror of
https://github.com/python/cpython.git
synced 2025-10-10 00:43:41 +00:00
BDFL agreed with Tim: rehabilitate randint().
This commit is contained in:
parent
5961042061
commit
f42d32cb27
1 changed files with 0 additions and 2 deletions
|
@ -315,8 +315,6 @@ class Random:
|
|||
|
||||
def randint(self, a, b):
|
||||
"""Return random integer in range [a, b], including both end points.
|
||||
|
||||
(Deprecated; use randrange(a, b+1).)
|
||||
"""
|
||||
|
||||
return self.randrange(a, b+1)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue