public class ShortRangeRandomizer extends AbstractRandomizer<T>
Short
in the given range.random
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.
|
getPredefinedValuesOf, toString
public 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()
public Short getRandomValue()
Randomizer
protected Short getDefaultMaxValue()
protected Short getDefaultMinValue()
Copyright © 2016. All Rights Reserved.