Skip to content

Commit

Permalink
Minor clarification (pythonGH-22708)
Browse files Browse the repository at this point in the history
  • Loading branch information
rhettinger committed Oct 15, 2020
1 parent 2d2af32 commit b67cbbd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Doc/library/random.rst
Original file line number Diff line number Diff line change
Expand Up @@ -545,9 +545,9 @@ Recipes

The default :func:`.random` returns multiples of 2⁻⁵³ in the range
*0.0 ≤ x < 1.0*. All such numbers are evenly spaced and are exactly
representable as Python floats. However, many floats in that interval
are not possible selections. For example, ``0.05954861408025609``
isn't an integer multiple of 2⁻⁵³.
representable as Python floats. However, many other representable
floats in that interval are not possible selections. For example,
``0.05954861408025609`` isn't an integer multiple of 2⁻⁵³.

The following recipe takes a different approach. All floats in the
interval are possible selections. The mantissa comes from a uniform
Expand Down

0 comments on commit b67cbbd

Please sign in to comment.