Class RandomValueSet

java.lang.Object
org.harctoolbox.valuesets.ValueSet
org.harctoolbox.valuesets.RandomValueSet
All Implemented Interfaces:
Iterable<Long>

public class RandomValueSet extends ValueSet
  • Constructor Details

    • RandomValueSet

      public RandomValueSet(long min, long max, int noRandoms)
  • Method Details

    • initRng

      public static void initRng(int seed)
    • initRng

      public static void initRng()
    • getRng

      public static Random getRng()
      Returns:
      the rng
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • reset

      public void reset()
      Description copied from class: ValueSet
      Resets the iterator to virgin state.
      Overrides:
      reset in class ValueSet
    • iterator

      public Iterator<Long> iterator()
    • getMax

      public long getMax()
      Returns:
      the max
    • getIndex

      public int getIndex()
      Returns:
      the index
    • getNoRandoms

      public int getNoRandoms()
      Returns:
      the noRandoms