|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.yahoo.ycsb.Generator
com.yahoo.ycsb.IntegerGenerator
com.yahoo.ycsb.UniformIntegerGenerator
public class UniformIntegerGenerator
Generates integers randomly uniform from an interval.
Constructor Summary | |
---|---|
UniformIntegerGenerator(int lb,
int ub)
Creates a generator that will return integers uniformly randomly from the interval [lb,ub] inclusive (that is, lb and ub are possible values) |
Method Summary | |
---|---|
int |
nextInt()
Return the next value as an int. |
Methods inherited from class com.yahoo.ycsb.IntegerGenerator |
---|
lastInt, lastString, nextString, setLastInt |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public UniformIntegerGenerator(int lb, int ub)
lb
- the lower bound (inclusive) of generated valuesub
- the upper bound (inclusive) of generated valuesMethod Detail |
---|
public int nextInt()
IntegerGenerator
nextInt
in class IntegerGenerator
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |