Package org.harctoolbox.valuesets
Class RandomValueSet
java.lang.Object
org.harctoolbox.valuesets.ValueSet
org.harctoolbox.valuesets.RandomValueSet
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.harctoolbox.valuesets.ValueSet
formatThing, main, newValueSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
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
- Returns:
- the rng
-
toString
-
reset
public void reset()Description copied from class:ValueSetResets the iterator to virgin state. -
iterator
-
getMax
public long getMax()- Returns:
- the max
-
getIndex
public int getIndex()- Returns:
- the index
-
getNoRandoms
public int getNoRandoms()- Returns:
- the noRandoms
-