Package org.harctoolbox.valuesets
Class RandomValueSet
java.lang.Object
org.harctoolbox.valuesets.ValueSet
org.harctoolbox.valuesets.RandomValueSet
-
Field Summary
-
Constructor Summary
-
Method Summary
Methods inherited from class org.harctoolbox.valuesets.ValueSet
formatThing, main, newValueSet
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods 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:ValueSet
Resets 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
-