Skip to content

stdlib.rst: mathematics section: random.random: add detail to comment on range of random.random() #111868

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Nov 9, 2023

Conversation

zipperer
Copy link
Contributor

@zipperer zipperer commented Nov 8, 2023

This commit adds a detail to a comment about random.random(). Before this commit, a comment says random.random() returns a random float. After this commit, that comment says random.random() returns a random float from interval (0.0, 1.0].

I propose to add this detail to the comment because it clarifies (for me) what the function returns.

However, this comment occurs in a 'brief tour', and the guide for a brief tour can be terse and expect the reader to go read the relevant page (e.g. in this case, https://docs.python.org/3/library/random.html#random.random) if the reader wants to know more than an overview offers. Given that view, the detail I add in this commit is not warranted.


📚 Documentation preview 📚: https://cpython-previews--111868.org.readthedocs.build/

@bedevere-app bedevere-app bot added awaiting review docs Documentation in the Doc dir skip news labels Nov 8, 2023
Missing article
@rhettinger rhettinger merged commit 2f2a0a3 into python:main Nov 9, 2023
aisk pushed a commit to aisk/cpython that referenced this pull request Feb 11, 2024
Glyphack pushed a commit to Glyphack/cpython that referenced this pull request Sep 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Documentation in the Doc dir skip issue skip news
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants