Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions Doc/library/random.rst
Original file line number Diff line number Diff line change
Expand Up @@ -300,6 +300,9 @@ be found in any statistics text.

Return the next random floating-point number in the range ``0.0 <= X < 1.0``

To generate :const:`True` with probability ``0.0 <= p <= 1.0``,
use ``random() < p``.
Comment on lines +303 to +304

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure if that belongs to the random() docs. Lets wait approval from Raymond or some his feedback in the issue thread.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i didn't want to create a separate recipe for this very small information



.. function:: uniform(a, b)

Expand Down
Loading