-
-
Notifications
You must be signed in to change notification settings - Fork 887
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
mersenne.rand without min argument returns NaN #479
Comments
I want to do this. Please assign me. |
I also implemented an if statement that checks if What would the expected behavior be here? |
Not sure on this one. I tend to allow min and max to be swapped as a kind of undocumented convenience feature. |
If |
FYI: Swapping the values will not break any existing test cases. |
Describe the bug
faker/src/mersenne.ts
Lines 31 to 40 in 30b0faa
Reproduction
This should return
0
no matter the seed, but returnsNaN
.Additional Info
No response
The text was updated successfully, but these errors were encountered: