import java.util.Random;
public class RandomNumber {
public static void main(String[] args) {
int []numbers = {1,2,5,4,3,42,71,25,6};
Random random = new Random();
int index = random.nextInt(numbers.length);
System.out.println(numbers[index]);
}
}
int[] i = {1,5,6,9,7,8,2,3};
Random random = new Random();
int r = random.nextInt(i.length);
int a = i[r];