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(DapType basetype) |
Object |
nextInteger(DapType basetype) |
Object |
nextValue(DapType basetype) |
Value.ValueSource |
source() |
protected Random random
public Value.ValueSource source()
public Object nextValue(DapType basetype) throws DapException
nextValue
in class Value
DapException
public Object nextInteger(DapType basetype) throws DapException
DapException
public Object nextFloat(DapType basetype) throws DapException
DapException
public int nextCount(int max) throws DapException
nextCount
in class Value
max
- DapException
Copyright © 1999–2019 UCAR/Unidata. All rights reserved.