changeset: 76302:e730da0cd489 parent: 76300:60f7719c0415 parent: 76301:38f8c779f5f8 user: Sandro Tosi date: Sat Apr 14 16:01:49 2012 +0200 files: Doc/library/random.rst description: merge with 3.2 diff -r 60f7719c0415 -r e730da0cd489 Doc/library/random.rst --- a/Doc/library/random.rst Fri Apr 13 21:05:36 2012 -0600 +++ b/Doc/library/random.rst Sat Apr 14 16:01:49 2012 +0200 @@ -315,7 +315,7 @@ >>> 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::