Searched refs:getRandomGenerator (Results 1 – 7 of 7) sorted by relevance
49 int rInd = GeneticAlgorithm.getRandomGenerator().nextInt(repr.size()); in mutate()52 newRepr.set(rInd, GeneticAlgorithm.getRandomGenerator().nextDouble()); in mutate()
96 public static synchronized RandomGenerator getRandomGenerator() { in getRandomGenerator() method in GeneticAlgorithm145 RandomGenerator randGen = getRandomGenerator(); in nextGeneration()
44 int geneIndex = GeneticAlgorithm.getRandomGenerator().nextInt(origChrom.getLength()); in mutate()
87 int rind = GeneticAlgorithm.getRandomGenerator().nextInt(chromosomes.size()); in tournament()
67 rList.add(GeneticAlgorithm.getRandomGenerator().nextInt(2)); in randomBinaryRepresentation()
98 int crossoverIndex = 1 + (GeneticAlgorithm.getRandomGenerator().nextInt(length-2)); in crossover()
195 repr.add(GeneticAlgorithm.getRandomGenerator().nextDouble()); in randomPermutation()