you can just replace these 2 lines with: 

return questions.get(randIndex);