Re: TRandom->Rndm

From: Hengtong Ding <dinght_at_iopp.ccnu.edu.cn>
Date: Tue, 26 Sep 2006 19:02:52 +0800 (CST)


Hi Rene,

Thanks for your pointing out!

best regards,
hengtong

On Tue, 26 Sep 2006, Rene Brun wrote:

> Hi Sophie,
>
> Let me repeat, you do not have to use TRandom2::Rndm. TH2::GetRandom2 will
> automatically call the default generator (ie TRandom3). Just call
> GetRandom2.
>
> Rene Brun
>
> Hengtong Ding wrote:
> > Hi Sophie,
> > You can use the better one Double_t TRandom3::Rndm(Int_t),
> >
> > but for the random numbers sampling from two dimension histograms,
> >
> > anyone knows a better way to avoid the defects Sophie mentioned?
> >
> > cheers,
> > hengtong
> >
> >> Hi
> >> there is this comment in
> >> double TRandom::Rndm(int)
> >>
> >> Note that this is a generator which is known to have defects
> >> (the lower random bits are correlated) and therefore should NOT be
> >> used in any statistical study.
> >>
> >> in this comment also true for :
> >>
> >> TH2::GetRandom2(double&, double&)
> >>
> >> thanks
> >> Sophie
> >>
> >>
> >>
> >
> >
>
Received on Tue Sep 26 2006 - 12:53:14 MEST

This archive was generated by hypermail 2.2.0 : Mon Jan 01 2007 - 16:32:01 MET