I have this function.
public static int[] createArray(){
int[] array = new int[5];
array = {5, 6, 8, 10, 0};
Collections.shuffle(Arrays.asList(array));
return array;
}
It seems I can't get the array randomized by collection directly. How can I randomize and return the array properly?