Automation for a light to randomly turn on and off sunset to sunrise but only while wife and I are away

I’ve looked around and there are automations that are close but no cigar. I guess Node Red has a random on/off thing but I’ve never used Node Red (not averse to it though). Tying it all together with presence is something I can’t get my head around.

I imagine our phones provide the presence feature and I should have them set up with Own Tracks pretty soon.

Any hits greatly appreciated.

https://community.home-assistant.io/search?q=lights%20random%20while%20away

Thanks, I’ve looked at most of these but none are exactly what I’m looking for. I just have one light (it’s a simulated TV) that needs to come on and off randomly at night.

Looking at them again there are several that are close so maybe after understanding the code better I can modify one.