toxi.util.datatypes
Class IntegerRange
java.lang.Object
toxi.util.datatypes.IntegerRange
- Direct Known Subclasses:
- BiasedIntegerRange
public class IntegerRange
- extends java.lang.Object
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
min
public int min
max
public int max
currValue
public int currValue
IntegerRange
public IntegerRange()
IntegerRange
public IntegerRange(int min,
int max)
adjustCurrentBy
public int adjustCurrentBy(int val)
getCurrent
public int getCurrent()
getMedian
public int getMedian()
isValueInRange
public boolean isValueInRange(int val)
pickRandom
public int pickRandom()
setCurrent
public int setCurrent(int val)
setRandom
public void setRandom(java.util.Random rnd)
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object