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