How to create section on homepage that allows user to click button to generate a random image?

I am trying to add a section to our homepage that allows users to view a new fact by pressing a button. The button would ideally say something along the lines of “Click here to see new image”. When the viewer clicks the button the image would change (doesn’t need to be a random image necessarily) and a new image would appear where the old one was previously. They could click this button multiple times, each time displaying a new image. We would have a set of ~10 images for the viewer to rotate through.

We would also be open to doing a swipe through slideshow. But note that we already have a slideshow at the top of our site that we removed the arrows from via code. Any idea on how is this could be possible?

@candyman1

Sorry you are facing this issue, it would be my pleasure to help you.

Welcome to the Shopify community! :blush:
Thanks for your good question.

Please share your site URL,
I will check out the issue and provide you a solution here.