Issue
I have list of countries in my array, I would like to pick random country from the list (using random probably?), but I haven't found out the answer myself...
This is what I have so far:
String[] list = {"Finland", "Russia", "Latvia", "Lithuania", "Poland"};
Random r = new Random();
Solution
Try:
list[r.nextInt(list.length)];
Answered By - Burleigh Bear