I'm creating a website that randomly chooses a place for you to eat. It accesses yelp api and returns 10 results. I want to randomly pick 1 of those results and publish that onto my website. I'm looking for any suggestions about how to do this using javascript. I know you can do it using php but would prefer to use js if i can.
Because the data will be constantly changing as it's based on user input I can't assign each place with a number and then use math.random.
Does anyone have any suggestions on what I could use?