Programatically retrieving current random seeds

I am printing out information about events which are being generated by my simulation. Way down in this list I find an event that is interesting. I would like to be able to reproduce this event without all those that preceded it. I’m guessing that this should be possible by retrieving (and recording) the random seeds at the start of the event, in order to set precisely those seeds when I want to reproduce this event.

How can the random seeds be retrieved from within Geant4?

Hi Jacek,
the most straightforward way is to use the predefined UI commands (see the description here). Alternatively, you can explicitly do so in your run and/or event action by querying the G4RunManager.
Cheers, Gabriele