Class DefaultRandomFactory
- java.lang.Object
-
- org.optaplanner.core.impl.solver.random.DefaultRandomFactory
-
- All Implemented Interfaces:
RandomFactory
public class DefaultRandomFactory extends Object implements RandomFactory
-
-
Field Summary
Fields Modifier and Type Field Description protected Long
randomSeed
protected RandomType
randomType
-
Constructor Summary
Constructors Constructor Description DefaultRandomFactory(RandomType randomType, Long randomSeed)
-
-
-
Field Detail
-
randomType
protected final RandomType randomType
-
randomSeed
protected final Long randomSeed
-
-
Constructor Detail
-
DefaultRandomFactory
public DefaultRandomFactory(RandomType randomType, Long randomSeed)
- Parameters:
randomType
- never nullrandomSeed
- null if no seed
-
-
Method Detail
-
createRandom
public Random createRandom()
- Specified by:
createRandom
in interfaceRandomFactory
- Returns:
- never null
-
-