Loading random Image with text data [HTML and Javascript]

Hello!
I’m trying to set up a function on my website where it displays a new random image every time the current image is clicked. Each time a new random image is generated, I want to also display text that goes with that specific image. ex, the first picture is of a computer, with text below it saying ‘computer’, and when clicked it generates a new image, say of a house, and displays ‘house text’ below. There’s is going to be thousands of images with their own individual data, so I assume hosting everything onto a mysql server of some sort would be the best way to go about this, but im not really sure where to begin! (relatively new to calling from databases, especially with images)

any help would be great! thanks :slight_smile: