Package org.midheaven.math
Class BigIntegersRandomGenerator
java.lang.Object
org.midheaven.math.BigIntegersRandomGenerator
- All Implemented Interfaces:
DiscreteIntervalRandomGenerator<BigInteger>,IntervalRandomGenerator<BigInteger>,RandomGenerator<BigInteger>
public final class BigIntegersRandomGenerator
extends Object
implements IntervalRandomGenerator<BigInteger>
Generator for Big Integers Random values.
-
Method Summary
Modifier and TypeMethodDescriptionprotected final Randombase()Performs base.between(BigInteger lowerBound, BigInteger upperBound) Performs between.betweenIncluding(BigInteger lowerBound, BigInteger upperBound) Performs betweenIncluding.protected final intcheckBounds(BigInteger lowerBound, BigInteger upperBound) protected intcompare(BigInteger a, BigInteger b) Performs compare.next()Performs next.protected BigIntegernext(BigInteger upperBound) Performs next.protected BigIntegernext(BigInteger lowerBound, BigInteger upperBound) Performs next.protected BigIntegernextIncluding(BigInteger upperBound) Returns next Including.protected BigIntegernextIncluding(BigInteger lowerBound, BigInteger upperBound) Returns next Including.upTo(BigInteger upperBound) Performs upTo.upToIncluding(BigInteger upperBound) Performs upToIncluding.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.midheaven.math.IntervalRandomGenerator
between, upToMethods inherited from interface org.midheaven.math.RandomGenerator
generateNext, stream
-
Method Details
-
next
Performs next.- Specified by:
nextin interfaceRandomGenerator<BigInteger>- Returns:
- the result of next
-
nextIncluding
Returns next Including.- Parameters:
upperBound- the upperBound value- Returns:
- the result of nextIncluding
-
nextIncluding
Returns next Including.- Parameters:
lowerBound- the lowerBound valueupperBound- the upperBound value- Returns:
- the result of nextIncluding
-
next
Performs next.- Parameters:
upperBound- the upperBound value- Returns:
- the result of next
-
next
Performs next.- Parameters:
lowerBound- the lowerBound valueupperBound- the upperBound value- Returns:
- the result of next
-
compare
Performs compare.- Parameters:
a- the a valueb- the b value- Returns:
- the result of compare
-
upToIncluding
Description copied from interface:DiscreteIntervalRandomGeneratorPerforms upToIncluding.- Specified by:
upToIncludingin interfaceDiscreteIntervalRandomGenerator<T>- Parameters:
upperBound- the upperBound value- Returns:
- the result of upToIncluding
-
betweenIncluding
Description copied from interface:DiscreteIntervalRandomGeneratorPerforms betweenIncluding.- Specified by:
betweenIncludingin interfaceDiscreteIntervalRandomGenerator<T>- Parameters:
lowerBound- the lowerBound valueupperBound- the upperBound value- Returns:
- the result of betweenIncluding
-
upTo
Description copied from interface:IntervalRandomGeneratorPerforms upTo.- Specified by:
upToin interfaceIntervalRandomGenerator<T>- Parameters:
upperBound- the upperBound value- Returns:
- the result of upTo
-
between
Description copied from interface:IntervalRandomGeneratorPerforms between.- Specified by:
betweenin interfaceIntervalRandomGenerator<T>- Parameters:
lowerBound- the lowerBound valueupperBound- the upperBound value- Returns:
- the result of between
-
checkBounds
-
base
Performs base.- Returns:
- the result of base
-