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

Changing to a smaller range will result in no items being generated. #5

Open
iargue opened this issue Jul 15, 2015 · 0 comments
Open

Comments

@iargue
Copy link

iargue commented Jul 15, 2015

If you start out with a specific range size (10-20 for 10 total numbers) and then generate a few (say 5) random numbers, and then change the range, if the new range is 5 or less, the program will fail to generate any new numbers.

This occurs even if the range is separate from the previous range (Aka, doing range 10-20 and then 30-35). This is caused because the code simply checks if the number of previously picked items are greater then the range, instead of validating it.

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

1 participant