Is there any random array generator in Greenfoot? If not, how can I program it?
// with a declared array int[] array = new int[10]; // array for the choices to be made randomly // add random values and shuffle for (int i=0; i<array.length; i++) array[i] = i; // fill array java.util.Collections.shuffle(java.util.Arrays.asList(array)); // shuffle array