13c1 = ROOT.TCanvas(
"c1",
"The FillRandom example",200,10,700,900)
 
   14pad1 = ROOT.TPad(
"pad1",
"The pad with the function",0.05,0.50,0.95,0.95)
 
   15pad2 = ROOT.TPad(
"pad2",
"The pad with the histogram",0.05,0.05,0.95,0.45)
 
   19ROOT.gBenchmark.Start(
"fillrandom")
 
   21form1 = ROOT.TFormula(
"form1",
"abs(sin(x)/x)")
 
   22sqroot = ROOT.TF1(
"sqroot",
"x*gaus(0) + [3]*form1",0,10)
 
   23sqroot.SetParameters(10,4,1,20)
 
   26pad1.GetFrame().SetBorderMode(-1)
 
   31lfunction = ROOT.TPaveLabel(5,39,9.8,46,
"The sqroot function")
 
   36pad2.GetFrame().SetBorderMode(-1)
 
   38h1f = ROOT.TH1F(
"h1f",
"Test random numbers",200,0,10)
 
   40h1f.FillRandom(
"sqroot",10000)
 
   44f = ROOT.TFile(
"fillrandom-py.root",
"RECREATE")
 
   48ROOT.gBenchmark.Show(
"fillrandom")