Class DoubleValueRange

    • Constructor Detail

      • DoubleValueRange

        public DoubleValueRange​(double from,
                                double to)
        Parameters:
        from - inclusive minimum
        to - exclusive maximum, >= from
    • Method Detail

      • contains

        public boolean contains​(Double value)
        Parameters:
        value - sometimes null
        Returns:
        true if the ValueRange contains that value
      • createRandomIterator

        public Iterator<Double> createRandomIterator​(Random workingRandom)
        Description copied from interface: ValueRange
        Select in random order, but without shuffling the elements. Each element might be selected multiple times. Scales well because it does not require caching.
        Parameters:
        workingRandom - never null, the Random to use when any random number is needed, so runs are reproducible.
        Returns:
        never null