Skip to content
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

gh-123968: Fix lower bound for python -m random --float #123971

Merged
merged 1 commit into from
Sep 12, 2024

Commits on Sep 11, 2024

  1. pythongh-123968: Fix lower bound for python -m random --float

    `python -m random --float N` incorrectly used a range between 1 and N
    of length N - 1.  Fix it to use a range between 0 and N of length N,
    as originally specified in python#118131, and as everyone will expect.
    
    Fixes python#123968.
    
    Signed-off-by: Anders Kaseorg <andersk@mit.edu>
    andersk committed Sep 11, 2024
    Configuration menu
    Copy the full SHA
    14e414a View commit details
    Browse the repository at this point in the history