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 ValueDapExceptionpublic Object nextInteger(DapType basetype) throws DapException
DapExceptionpublic Object nextFloat(DapType basetype) throws DapException
DapExceptionpublic int nextCount(int max)
throws DapException
nextCount in class Valuemax - DapExceptionCopyright © 1999–2021 UCAR/Unidata. All rights reserved.