Package net.splitcells.dem.utils.random
Class JavaRandomWrapper
- java.lang.Object
-
- net.splitcells.dem.utils.random.JavaRandomWrapper
-
- All Implemented Interfaces:
Randomness
,RndSrcCrypt
public class JavaRandomWrapper extends Object implements Randomness, RndSrcCrypt
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
JavaRandomWrapper(Random arg_rnd)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Random
asRandom()
int
integer()
int
integer(Integer min, Integer max)
FIXME Allow negative min and max.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface net.splitcells.dem.utils.random.Randomness
chooseAtMostMultipleOf, chooseOneOf, chooseOneOf, integer, integer, readableAsciiString, removeOneOf, truthValue, truthValue, truthValue
-
-
-
-
Constructor Detail
-
JavaRandomWrapper
protected JavaRandomWrapper(Random arg_rnd)
-
-
Method Detail
-
asRandom
public Random asRandom()
- Specified by:
asRandom
in interfaceRandomness
-
integer
public int integer()
- Specified by:
integer
in interfaceRandomness
-
integer
public int integer(Integer min, Integer max)
FIXME Allow negative min and max.- Specified by:
integer
in interfaceRandomness
-
-