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

"single randoms" naming consistency #1

Open
tabatkins opened this issue Apr 23, 2024 · 1 comment
Open

"single randoms" naming consistency #1

tabatkins opened this issue Apr 23, 2024 · 1 comment

Comments

@tabatkins
Copy link
Collaborator

Ignoring random(), which is named to be consistent with Math.random(), the other operations are numberBetween(), intBetween(), and boolean().

Do we need the "Between" parts? They're already conditioned on the Random namespace; I think having all of them more consistent with boolean() would be fine: Random.number(a, b), Random.integer(a, b), and Random.boolean()

@bakkot
Copy link

bakkot commented Apr 23, 2024

I vote for dropping the between.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants