public class ShortRangeRandomizer extends AbstractRangeRandomizer<Short>
Short in the given range.max, minrandom| Constructor and Description |
|---|
ShortRangeRandomizer(Short min,
Short max)
Create a new
ShortRangeRandomizer. |
ShortRangeRandomizer(Short min,
Short max,
long seed)
Create a new
ShortRangeRandomizer. |
| Modifier and Type | Method and Description |
|---|---|
static ShortRangeRandomizer |
aNewShortRangeRandomizer(Short min,
Short max)
Create a new
ShortRangeRandomizer. |
static ShortRangeRandomizer |
aNewShortRangeRandomizer(Short min,
Short max,
long seed)
Create a new
ShortRangeRandomizer. |
protected void |
checkValues() |
protected Short |
getDefaultMaxValue() |
protected Short |
getDefaultMinValue() |
Short |
getRandomValue()
Generate a random value for the given type.
|
nextLongpublic ShortRangeRandomizer(Short min, Short max)
ShortRangeRandomizer.min - min valuemax - max valuepublic ShortRangeRandomizer(Short min, Short max, long seed)
ShortRangeRandomizer.min - min valuemax - max valueseed - initial seedpublic static ShortRangeRandomizer aNewShortRangeRandomizer(Short min, Short max)
ShortRangeRandomizer.min - min valuemax - max valueShortRangeRandomizer.public static ShortRangeRandomizer aNewShortRangeRandomizer(Short min, Short max, long seed)
ShortRangeRandomizer.min - min valuemax - max valueseed - initial seedShortRangeRandomizer.protected void checkValues()
checkValues in class AbstractRangeRandomizer<Short>public Short getRandomValue()
Randomizerprotected Short getDefaultMaxValue()
getDefaultMaxValue in class AbstractRangeRandomizer<Short>protected Short getDefaultMinValue()
getDefaultMinValue in class AbstractRangeRandomizer<Short>Copyright © 2016. All Rights Reserved.