mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Improve the docstring of random.shuffle. Inform users not to provide int arg.
Addresses issue #14927
This commit is contained in:
parent
b9183950d8
commit
f8ce51ab16
1 changed files with 2 additions and 0 deletions
|
@ -256,6 +256,8 @@ class Random(_random.Random):
|
|||
|
||||
Optional arg random is a 0-argument function returning a random
|
||||
float in [0.0, 1.0); by default, the standard random.random.
|
||||
|
||||
Do not supply the 'int' argument.
|
||||
"""
|
||||
|
||||
randbelow = self._randbelow
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue