Mi crea un solo numero random!!! uffa!!!codice:Vector<Integer> numbers = new Vector<Integer>(); for (int j = 0; j < NColonne; j++) { int rand = (int) Math.random()*(NColonne)+1; while (numbers.contains(rand)) { rand = (int) Math.random()*(NColonne)+1; } System.out.println(rand); }
Grazie per l'aiuto!!!!
![]()