|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbcds.tools.random.RndGenBase
bcds.tools.random.RndUnif
public class RndUnif
Generates uniformly distributed random values in the range [0, max).
Constructor Summary | |
---|---|
RndUnif(double max)
Creates an instance that will produce randomm values in the range [0.. max ), that is excluding max . |
|
RndUnif(java.util.Random rnd,
double max)
Creates an instance that will produce randomm values in the range [0.. max ), that is excluding max , using
rnd as the randomness source. |
Method Summary | |
---|---|
double |
next()
Returns a uniformly distributed random value in the range [0, max). |
Methods inherited from class bcds.tools.random.RndGenBase |
---|
getRandomGen, setRandomGen |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface bcds.tools.random.RndGen |
---|
getRandomGen, setRandomGen |
Constructor Detail |
---|
public RndUnif(double max)
max
), that is excluding max
.
It uses the default randomness source.
public RndUnif(java.util.Random rnd, double max)
max
), that is excluding max
, using
rnd
as the randomness source.
Method Detail |
---|
public double next()
next
in interface RndGen
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |