The variable "cache" in G4InelasticInteraction is in some cases not initialized before it is used. For example in the method G4InelasticInteraction::CalculateMomenta, cache is not initialized before use if the reaction is quasi-elastic. For the case of GenerateXandPt and TwoCluster, the method Rotate is called which initializes cache. Hence for quasi-elastic events we get unpredictable behavior. For the time being, I initialize cache to 0.0 in the constructor of G4InelasticInteraction. This makes things reproducible again.
Hi Dennis, thank you for reporting this! Many greetings, Hans-Peter.
Hi Dennis, a fix was submitted for system testing. Many greetings, Hans-Peter.
As it turns out, the first fix was not sufficient. A set of fixes went into patch-1 of 5.0.