Commit 98fb826
committed
gh-123968: Fix lower bound for
`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 #118131, and as everyone will expect.
Fixes #123968.
Signed-off-by: Anders Kaseorg <[email protected]>python -m random --float
1 parent 3bd942f commit 98fb826
File tree
2 files changed
+4
-3
lines changed- Lib
- Misc/NEWS.d/next/Library
2 files changed
+4
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1013 | 1013 | | |
1014 | 1014 | | |
1015 | 1015 | | |
1016 | | - | |
| 1016 | + | |
1017 | 1017 | | |
1018 | 1018 | | |
1019 | 1019 | | |
| |||
1038 | 1038 | | |
1039 | 1039 | | |
1040 | 1040 | | |
1041 | | - | |
| 1041 | + | |
1042 | 1042 | | |
1043 | 1043 | | |
1044 | 1044 | | |
| |||
1055 | 1055 | | |
1056 | 1056 | | |
1057 | 1057 | | |
1058 | | - | |
| 1058 | + | |
1059 | 1059 | | |
1060 | 1060 | | |
1061 | 1061 | | |
| |||
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
0 commit comments