I have an Array of number values, and I want to randomly select a value from in that array and then insert it in to an int variable.
int
I\'m not sure wha
Just clubsArray[new Random().nextInt(clubsArray.length)] would work
clubsArray[new Random().nextInt(clubsArray.length)]
Or to randomize the order of elements, use List<?> clubsList=Arrays.asList(clubsArray); Collections.shuffle(clubsList);.
List<?> clubsList=Arrays.asList(clubsArray); Collections.shuffle(clubsList);