{ delete gRandom; gRandom = new TRandom(123456); // Setting the seed TH1F *gauss = new TH1F ("gauss", "Gauss Distribution", 200, 0, 20) ; TH1F *landau = new TH1F ("landau", "landau Distribution", 200, 0, 20); for(int i=0; i<100000; ++i) { double a=gRandom->Gaus(10, 2); gauss->Fill(a); double b=gRandom->Landau(12, 0.5) ; landau->Fill(b); } gauss->SetLineColor(2); // Kokkino xrwma landau->SetLineColor(3); // Prasino xrwme c1=new TCanvas("c1", "Gauss - Landau", 600, 400); c1->cd(); landau->Draw() ; gauss->Draw("same") ; }