Hi Phil, Thanks for reporting this problem with the Binomial distribution. I have fixed the problem in my development version. Note that if you use CVS, you can import the fix immediatly from our site. Rene Brun Phil Adamson wrote: > > Hi, > I can't get TRandom::Binomial to produce sensible results. > Attached is the result of the following macro - am I doing something > stupid, or is this a bug? > > void randtest() > { > TH1F *hist = new TH1F("hist","Test gRandom->Binomial(10,0.5)",10,0,10); > for (int i=0;i<1000000;i++) { > hist->Fill(gRandom->Binomial(10,0.5)); > } > hist->Draw(); > } > > > Tried with root 2.24/4 and 2.23/12 - same results. > > Phil > > -------------------------------------------------------------------------------- > > Name: c1.eps > c1.eps Type: Postscript Document (APPLICATION/PostScript) > Encoding: BASE64
This archive was generated by hypermail 2b29 : Tue Jan 02 2001 - 11:50:28 MET