-
-
Notifications
You must be signed in to change notification settings - Fork 176
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
int.random behaviour #512
Comments
I did implement the first verion and I think someone changed it later.
This was in the first version and might be gone because people complained about performance instead of rolling their own. AFAIR.
This is behaviour in the Erlang implementation and the JS implementation says it should be the case but it isn't so there is a small check in the JS implementation, or at least that was the case. |
I think that #486 is addressing this issue; you can have a look at the documentation they added, I think it does a good job at explaining the behaviour of the random function |
Sorry I've not kept on top of this item of work. I'm unsure what is best here, and whether we should continue to do these checks for which of the two numbers is largest. |
max
but the actually higher value)I'm not sure if this behaviour is intended, but at least it needs to be documented.
The text was updated successfully, but these errors were encountered: