public class RandomNumbers {
public static void main(String[] args) {
int[] randomNumbers = new int[] { 2, 3, 5, 7, 11, 13, 17, 19 };
Random r = new Random();
int nextRandomNumberIndex = r.nextInt(randomNumbers.length);
System.out.println(randomNumbers[nextRandomNumberIndex]);
}
}