Automatic swap of featured image possible?

Hi, is there a way to change the featured image programatically?

Use case: My front page show 10 events from the same company (and the current featured image). I would like to have random images displayed, so that not all 10 events display the same image.

Thanks for any advice

Here is my public share link: LINK
(how to access public share link)

Hey Tomas,

It’s hard to suggest anything without some detail on exactly what you’re trying to do, along with an example site, and read-only link, and specific details on where you’re stuck.

Right know we have no idea what your featured image represents ( the company? an event? ) and where that set of possible images is stored.

Same problem for the events… if you’re wanting random images is that 1 random from a set of images that each event has stored somewhere?