okay ive been trying to do this for some time i want my program to randomly select 3 strings from my text file and display them randomly so each time i press 9 on my menu it will display 3 different ones each time and i've already made the array i'm just trying to figure out this last part :)
//the array name words[3];
Random random = new Random();
int rgen = random.nextInt(10)+1;
System.out.println(words[rgen]);