Package org.midheaven.math
Interface DiscreteIntervalRandomGenerator<T>
- Type Parameters:
T- type being generated
- All Superinterfaces:
IntervalRandomGenerator<T>,RandomGenerator<T>
- All Known Implementing Classes:
BigIntegersRandomGenerator,IntegersRandomGenerator,LocalDatesRandomGenerator,LongsRandomGenerator
Generator for Discrete Interval Random values.
-
Method Summary
Modifier and TypeMethodDescriptionbetweenIncluding(T lowerBound, T upperBound) Performs betweenIncluding.upToIncluding(T upperBound) Performs upToIncluding.Methods inherited from interface org.midheaven.math.IntervalRandomGenerator
between, upToMethods inherited from interface org.midheaven.math.RandomGenerator
generateNext, next, stream
-
Method Details
-
upToIncluding
Performs upToIncluding.- Parameters:
upperBound- the upperBound value- Returns:
- the result of upToIncluding
-
betweenIncluding
Performs betweenIncluding.- Parameters:
lowerBound- the lowerBound valueupperBound- the upperBound value- Returns:
- the result of betweenIncluding
-