[SOLVED] Get a random String
i am having trouble getting a random string.
I have gotten the String from the text file and put it into an array but now i keep just getting the first line whenever i try to get a random String (which is a single line) from this array.
At the moment my code is:
i can see why i'm not getting a random because i havent actually asked for one but i am not sure how to do so??
public String generateRandomQuestion()
Random randomGenerator = new Random();
System.out.println("Your Question is : ");
for(int q =1;q<2; ++q)
System.out.println( Quest[q] );
Any help would be much appreciated