Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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

Merged
hugovk merged 4 commits intopython:mainfromhugovk:random-cli
May 5, 2024

Conversation

hugovk
Copy link
Member

@hugovkhugovk commentedApr 21, 2024
edited
Loading

erlend-aasland reacted with rocket emoji
@hugovkhugovk added the stdlibPython modules in the Lib dir labelApr 21, 2024
@rhettingerrhettinger removed their request for reviewApril 21, 2024 18:54
@rhettinger
Copy link
Contributor

Personally, I don't support this proposal but won't stand in the way of it either. It seems gratuitous.

@hugovkhugovkenabled auto-merge (squash)May 5, 2024 06:06
@hugovkhugovk merged commit3b32575 intopython:mainMay 5, 2024
33 checks passed
@hugovkhugovk deleted the random-cli branchMay 5, 2024 06:30
SonicField pushed a commit to SonicField/cpython that referenced this pull requestMay 8, 2024
return randint(1, args.integer)

if args.float is not None:
return uniform(1, args.float)
Copy link
Contributor

@anderskanderskSep 11, 2024
edited
Loading

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.

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@anderskanderskandersk left review comments

@funkyfuturefunkyfuturefunkyfuture left review comments

@laydaylaydaylayday left review comments

@pfmoorepfmoorepfmoore approved these changes

@erlend-aaslanderlend-aaslanderlend-aasland approved these changes

Assignees
No one assigned
Labels
stdlibPython modules in the Lib dir
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

7 participants
@hugovk@rhettinger@andersk@pfmoore@funkyfuture@erlend-aasland@layday

[8]ページ先頭

©2009-2025 Movatter.jp