Alright I'm not sure if I worded the title correctly but I'm looking to generate a random number based on the numbers in an arraylist.
So if I have the values 1,2,12,6 I would like to generate a random number based on those numbers, so the return number from the random number generated would be either 1, 2, 12, or 6 and nothing else. Hope I explained that well enough, I apologise if not. Thanks guys.