Class DefaultRandomFactory
- java.lang.Object
- 
- org.optaplanner.core.impl.solver.random.DefaultRandomFactory
 
- 
- All Implemented Interfaces:
- RandomFactory
 
 public class DefaultRandomFactory extends Object implements RandomFactory 
- 
- 
Field SummaryFields Modifier and Type Field Description protected LongrandomSeedprotected RandomTyperandomType
 - 
Constructor SummaryConstructors Constructor Description DefaultRandomFactory(RandomType randomType, Long randomSeed)
 
- 
- 
- 
Field Detail- 
randomTypeprotected final RandomType randomType 
 - 
randomSeedprotected final Long randomSeed 
 
- 
 - 
Constructor Detail- 
DefaultRandomFactorypublic DefaultRandomFactory(RandomType randomType, Long randomSeed) - Parameters:
- randomType- never null
- randomSeed- null if no seed
 
 
- 
 - 
Method Detail- 
createRandompublic Random createRandom() - Specified by:
- createRandomin interface- RandomFactory
- Returns:
- never null
 
 
- 
 
-