Random seed in TF1

Hi Rooters,

I have a TF1 function and I want to get random values from the function. I have to fill up few files each with few thousand values. Because TF1 take default random seed (I guess) every time when I generate file, each file are identical. Is there any way to change this random seed to machine clock so that all files are different?


simply call gRandom->SetSeed() at the start of your program.
see TRandom::SetSeed documentation.


1 Like