@@ -0,0 +1,1197 @@
+package org.uma.jmetal.auto.selection.impl;%0A%0Aimport org.uma.jmetal.auto.selection.MatingPoolSelection;%0Aimport org.uma.jmetal.auto.util.checking.Checker;%0Aimport org.uma.jmetal.operator.impl.selection.NaryTournamentSelection;%0Aimport org.uma.jmetal.operator.impl.selection.RandomSelection;%0Aimport org.uma.jmetal.solution.Solution;%0Aimport org.uma.jmetal.util.SolutionListUtils;%0A%0Aimport java.util.ArrayList;%0Aimport java.util.Comparator;%0Aimport java.util.List;%0A%0Apublic class RandomMatingPoolSelection%3CS extends Solution%3C?%3E%3E implements MatingPoolSelection%3CS%3E %7B%0A  private RandomSelection%3CS%3E selectionOperator;%0A  private int matingPoolSize;%0A  private Checker check = new Checker();%0A%0A  public RandomMatingPoolSelection(int matingPoolSize) %7B%0A    selectionOperator = new RandomSelection%3C%3E();%0A    this.matingPoolSize = matingPoolSize;%0A  %7D%0A%0A  public List%3CS%3E select(List%3CS%3E solutionList) %7B%0A    check%0A        .isNotNull(solutionList)%0A        .isTrue(%0A            solutionList.size() %3E= matingPoolSize,%0A            %22The solution list size is lower than the mating pool size%22);%0A%0A    List%3CS%3E matingPool = SolutionListUtils.selectNRandomDifferentSolutions(matingPoolSize, solutionList);%0A%0A    return matingPool;%0A  %7D%0A%7D%0A

Add class RandomMatingPoolSelection