Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork32k
gh-118131: Command-line interface for therandom
module#118132
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
Personally, I don't support this proposal but won't stand in the way of it either. It seems gratuitous. |
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
3b32575
intopython:mainUh oh!
There was an error while loading.Please reload this page.
return randint(1, args.integer) | ||
if args.float is not None: | ||
return uniform(1, args.float) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
In#118131 this was specced for floats to use the range between0
andN
of lengthN
, which would be more useful and makes a lot more sense than the range between1
andN
of lengthN - 1
.
Uh oh!
There was an error while loading.Please reload this page.
random
module #118131📚 Documentation preview 📚:https://cpython-previews--118132.org.readthedocs.build/en/118132/library/random.html#command-line-usage