diff options
author | Sandro Tosi <sandro.tosi@gmail.com> | 2012-04-14 14:01:49 (GMT) |
---|---|---|
committer | Sandro Tosi <sandro.tosi@gmail.com> | 2012-04-14 14:01:49 (GMT) |
commit | d2cbd9053975d6d6a98adb23b2735b2125ed0626 (patch) | |
tree | 29afa834b19640e58fdfa93fc557f9e2e49ac891 /Doc | |
parent | 9c9af9d2ad0f33faacc9291549586b4df74d4b90 (diff) | |
parent | 1ee17198c818c33b482a680d38a53a40c38d3054 (diff) | |
download | cpython-d2cbd9053975d6d6a98adb23b2735b2125ed0626.zip cpython-d2cbd9053975d6d6a98adb23b2735b2125ed0626.tar.gz cpython-d2cbd9053975d6d6a98adb23b2735b2125ed0626.tar.bz2 |
merge with 3.2
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 2b10e6e..daf7a76 100644 --- a/Doc/library/random.rst +++ b/Doc/library/random.rst @@ -315,7 +315,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:: |