I have a brief java question. Hopefully there is an easy answer but I doubt it. I have a text file containing a number of strings such as:
ABC 123 XYZ
DEF 456 XYZ
GHI 789 XYZ
I read in one of the lines as a string and use it. Is there a way to randomly select one of the strings? How would I do it? Is there a way to accomplish this using Math.Random?
Thanks
ABC 123 XYZ
DEF 456 XYZ
GHI 789 XYZ
I read in one of the lines as a string and use it. Is there a way to randomly select one of the strings? How would I do it? Is there a way to accomplish this using Math.Random?
Thanks