We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d395209 commit 8dbe563Copy full SHA for 8dbe563
Doc/library/random.rst
@@ -160,7 +160,8 @@ Functions for sequences
160
161
The *weights* or *cum_weights* can use any numeric type that interoperates
162
with the :class:`float` values returned by :func:`random` (that includes
163
- integers, floats, and fractions but excludes decimals).
+ integers, floats, and fractions but excludes decimals). Weights are
164
+ assumed to be non-negative.
165
166
For a given seed, the :func:`choices` function with equal weighting
167
typically produces a different sequence than repeated calls to
0 commit comments