I want a JavaScript function to randomly select a sentence from a list of data in the same file and display it when I click a button with an "onclick" event. I'm looking for the simplest way to implement this functionality. Does anyone have an example?
(Just looking around, first time trying JavaScript)