diff options
author | Raymond Hettinger <python@rcn.com> | 2016-09-07 07:08:44 (GMT) |
---|---|---|
committer | Raymond Hettinger <python@rcn.com> | 2016-09-07 07:08:44 (GMT) |
commit | 28aa4a06842bb4a27b6c41b61bc52da74cad669e (patch) | |
tree | 4c3e5bae19b3f200e3c825012efd27dc5dd1e954 /Doc | |
parent | c98b26a6ac0e5e68dd2eb820430cc2a44b4df019 (diff) | |
download | cpython-28aa4a06842bb4a27b6c41b61bc52da74cad669e.zip cpython-28aa4a06842bb4a27b6c41b61bc52da74cad669e.tar.gz cpython-28aa4a06842bb4a27b6c41b61bc52da74cad669e.tar.bz2 |
Rename weighted_choices() to just choices()
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/library/random.rst | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/library/random.rst b/Doc/library/random.rst index 330cce1..5eb44da 100644 --- a/Doc/library/random.rst +++ b/Doc/library/random.rst @@ -124,7 +124,7 @@ Functions for sequences: Return a random element from the non-empty sequence *seq*. If *seq* is empty, raises :exc:`IndexError`. -.. function:: weighted_choices(k, population, weights=None, *, cum_weights=None) +.. function:: choices(k, population, weights=None, *, cum_weights=None) Return a *k* sized list of elements chosen from the *population* with replacement. If the *population* is empty, raises :exc:`IndexError`. |