TGenPhaseSpace random seed

Hi,

Is there any way to set the random seed in TGenPhaseSpace?

Thanks.

TGenPhaseSpace uses the current random number generator pointed by gRandom (in TRandom.h).
You can set yourself gRandom to a different generator or seed value with eg,

gRandom = new TRandom3(0);
Rene

1 Like

Thanks a lot.