Skip to content

getNumber() is throwing exception #14

Description

@safzal01

getNumber() is throwing Exception
java.lang.IllegalArgumentException: bound must be positive

In Implementation you are using Integer.MIN_VALUE and Integer.MAX_Value, and when you subtract maximum value to minimum value it always returns -1,
random.nextInt(-1) throws exception

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions