Interface DiscreteIntervalRandomGenerator<T>

Type Parameters:
T - type being generated
All Superinterfaces:
IntervalRandomGenerator<T>, RandomGenerator<T>
All Known Implementing Classes:
BigIntegersRandomGenerator, IntegersRandomGenerator, LocalDatesRandomGenerator, LongsRandomGenerator

public interface DiscreteIntervalRandomGenerator<T> extends IntervalRandomGenerator<T>
Generator for Discrete Interval Random values.
  • Method Details

    • upToIncluding

      RandomGenerator<T> upToIncluding(T upperBound)
      Performs upToIncluding.
      Parameters:
      upperBound - the upperBound value
      Returns:
      the result of upToIncluding
    • betweenIncluding

      RandomGenerator<T> betweenIncluding(T lowerBound, T upperBound)
      Performs betweenIncluding.
      Parameters:
      lowerBound - the lowerBound value
      upperBound - the upperBound value
      Returns:
      the result of betweenIncluding