diff --git a/src/pbil/Algotimo.java b/src/pbil/Algotimo.java index c16b684..ae940a9 100644 --- a/src/pbil/Algotimo.java +++ b/src/pbil/Algotimo.java @@ -98,7 +98,7 @@ private static List bestIndividuals(List individuals, in private static Committee drawCommittee(List cp, int soma) { Random m = new Random(); int aux =0; - aux = m.nextInt(soma); + aux = m.nextInt(soma) +1; int i =0; Committee drawed = new Committee(); while (aux>=0) {