Re: TRandom2 bug?

From: Rene Brun (Rene.Brun@cern.ch)
Date: Fri Oct 08 1999 - 08:25:17 MEST


Hi Gerco,
Despite the fact that the arguments to TRandom2::SetSeed2 are UInt_t,
their value cannot exceed 2147483647.
I have added the comment in this function.
Thanks for reporting.

I take this opportunity to mention that Root 2.23 includes a new class
TRandom3
faster than TRandom2 and with a longer period.

Rene Brun


Gerco Onderwater wrote:
> 
> Hi Rooters,
> 
> Consider the following output:
> 
> root [0] r = new TRandom2()
> (class TRandom2*)0x0
> root [1] r->SetSeed2(1464583848,2413771620)
> root [2] r->Rndm()
> (Float_t)(-8.13832656250000000e+04)
> root [3] r->Rndm()
> (Float_t)(-3.31171072000000000e+09)
> 
> Notice that both seeds are within the range of UInt_t.
> 
> Version: 2.22/09
> Hardware: Intel
> OS: Debian Linux 2.1
> 
> -- Gerco
> 
> Dr. C.J.G. Onderwater
> Nuclear Physics Laboratory
> 312 Loomis Laboratory of Physics
> University of Illinois at Urbana-Champaign
> 1110 West Green Street
> Urbana, IL 61801-3080
> Phone : (217) 244-7363
> Fax   : (217) 333-1215
> E-mail: onderwat@uiuc.edu



This archive was generated by hypermail 2b29 : Tue Jan 04 2000 - 00:43:40 MET