mirror of
https://github.com/python/cpython.git
synced 2024-11-25 19:03:49 +08:00
fix typo; thanks to Jérôme Mainka from docs@
This commit is contained in:
parent
84e59aa989
commit
1ee17198c8
@ -309,7 +309,7 @@ Basic usage::
|
||||
>>> random.sample([1, 2, 3, 4, 5], 3) # Three samples without replacement
|
||||
[4, 1, 5]
|
||||
|
||||
A common task is to make a :func:`random.choice` with weighted probababilites.
|
||||
A common task is to make a :func:`random.choice` with weighted probabilities.
|
||||
|
||||
If the weights are small integer ratios, a simple technique is to build a sample
|
||||
population with repeats::
|
||||
|
Loading…
Reference in New Issue
Block a user