public class RandomValue extends Value
Value.ValueSource| Modifier and Type | Field and Description |
|---|---|
protected Random |
random |
asciionly, HOSTNSEG, MAXOPAQUESIZE, MAXSEGSIZE, MAXSTRINGSIZE, PATHNSEG| Constructor and Description |
|---|
RandomValue() |
| Modifier and Type | Method and Description |
|---|---|
int |
nextCount(int max)
Return an integer in range 1..max inclusive.
|
Object |
nextFloat(dap4.core.dmr.DapType basetype) |
Object |
nextInteger(dap4.core.dmr.DapType basetype) |
Object |
nextValue(dap4.core.dmr.DapType basetype) |
Value.ValueSource |
source() |
protected Random random
public Value.ValueSource source()
public Object nextValue(dap4.core.dmr.DapType basetype) throws dap4.core.util.DapException
public Object nextInteger(dap4.core.dmr.DapType basetype) throws dap4.core.util.DapException
dap4.core.util.DapExceptionpublic Object nextFloat(dap4.core.dmr.DapType basetype) throws dap4.core.util.DapException
dap4.core.util.DapException