Skip to content

getNumber() is throwing exception #14

@safzal01

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

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