Skip to content

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

Description

@iargue

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions