/* * seed: TH1::GetRandom and TF1::GetRandom still use TRandom3, * that has a shorter period and trouble with some seeds */ int seed() { TRandom3 *r3 = new TRandom3(2**28); gRandom = r3; h = new TH1F("h","",10000,0,100); foo = new TF1("foo","gaus"); foo->SetParameters(1,50,3); h->FillRandom("foo"); h->Draw(); }