```
public class guessMovies {
private Random randomGenerator;
public static void main(String[] args) throws IOException {

    String MovieList = null;

    try (BufferedReader br = new BufferedReader(new FileReader("Movielist.txt"))) {

        while ((MovieList = br.readLine()) != null) {
            ArrayList<String> MovieNames = new ArrayList<String>();
            MovieNames.addAll(Arrays.asList(MovieList));
            //System.out.println(MovieList);
            System.out.println(MovieNames);

            Random r = new Random();
            System.out.print(MovieNames.get(r.nextInt(MovieNames.size)));
        }
    }

    catch(FileNotFoundException exception) {
        System.out.println("I cannot find your file");
    }
    //pick random movie
}

```

Can somebody guide me on how to pick a random movie title in the Movielist file, I can print out the whole list, but I'm not sure on how to pick one of them randomly.