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

Index out of bounds error in "rnd" method #32

Closed
JasonNumberThirteen opened this issue Nov 22, 2018 · 1 comment
Closed

Index out of bounds error in "rnd" method #32

JasonNumberThirteen opened this issue Nov 22, 2018 · 1 comment

Comments

@JasonNumberThirteen
Copy link

I noticed that "rnd" method throws an error about "index out of bounds" when minimum and maximum range are the same. That was so confusing, I analyzed my code many times searching the reason, but I didn't knew this could be caused by single value in range. I don't know how can I call it, is it a bug, an issue or just a mistake, but for sure it shouldn't throw an error for this.

@paladin-t
Copy link
Owner

It's a feature, the max specifier should be greater than the min.

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