Creates an instance of IntegerRange
, rounds min and max values if those
have decimal parts and swaps them if min > max.
minimum range bound (inclusive)
maximim range bound (exclusive)
Represents maximum range bound (exclusive)
Represents minimum range bound (inclusive)
Returns the number of integers, covered by this range, or max - min
Retuns true if suspect is integer and it goes inside this IntegerRange
.
Value to test wheter it is inside this IntegerRange
Returns a random integer from the range [min, max)
Returns IterableIterator
The maximum amount of numbers to generate,
which is max - min
by default
Generated using TypeDoc
Represents a range of integers [min, max), i.e. min bound is inclusive, but max bound is exclusive.
Note that this class is immutable, create new instance if you need another range bounds.