|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbe.ac.ulg.montefiore.run.totem.util.distribution.UniformIntDistribution
public class UniformIntDistribution
This class implements a uniform integer distribution.
Creation date: 1-Jan-2004
Constructor Summary | |
---|---|
UniformIntDistribution(long lower,
long upper)
Initialises a newly created UniformIntDistribution object. |
Method Summary | |
---|---|
double |
generate()
Returns a double value according to the uniform integer
distribution. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public UniformIntDistribution(long lower, long upper)
UniformIntDistribution
object.
lower
- The lowest value this object must return.upper
- The highest value this object must return.
java.lang.IllegalArgumentException
- If lower
is >= than
upper
.Method Detail |
---|
public double generate()
double
value according to the uniform integer
distribution.
generate
in interface Distribution
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |