I wonder if it is some sort of variation on a double pendulum problem.
https://en.wikipedia.org/wiki/Double_pendulum
Where the system is very chaotic and incredibly hard to model, so it appears to be random.
Perhaps this is a complicated multi star system that contains a pulsar and the complex orbits are creating these seemingly random flashes of light.