-
-
Notifications
You must be signed in to change notification settings - Fork 0
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
rnd.range(1,1) fails #3
Comments
As expected! |
I would expect it to return 1. A random number between 1 and 1 is 1. The same way a random number between 1 and 2 is 1 or 2. Most random generators I have used (mainly python) have had the following behaviour.
The change to return nil is a breaking change :) |
I'll implement this, but my opinion is this not a good practice.
|
It's for convenience, we noticed this because in our project we use With the previous behavior we had implemented this as
Which works, even though it's a lot uglier. I am fine with either but the breaking change caught us of guard. |
@Jerakin I was terribly busy for a couple of weeks, sorry. |
@Jerakin I'm closing this for now. If you are having a trouble, please let me know. |
No description provided.
The text was updated successfully, but these errors were encountered: