search form to return random results from a CSV database

I’d like to create a writing prompt generator on my Wordpress site. I have a csv file with 500 writing prompts. They are sorted into 3 grade levels and 2 types of prompts. A user would visit the webpage, select the grade levels and types of prompts they want, click a search button and receive a random result from the database that matches their request. pressing the button again would return a different match.