Home » PANDA » PandaRoot » Event Generators » simpleEvtGen default EvtRandomEngine
simpleEvtGen default EvtRandomEngine [message #9149] |
Thu, 06 August 2009 17:57 |
Marius Mertens
Messages: 55 Registered: January 2009
|
continuous participant |
From: *ikp.kfa-juelich.de
|
|
Hi all,
the default EvtRandomEngine used by simpleEvtGen is basically the generator below:
double EvtRandomEngine::random(){
static unsigned long int next = 1;
next=next*1103515245+123345;
unsigned temp=(unsigned)(next/65536) % 32768;
return ( temp + 1.0 ) / 32769.0;
}
At the first glance, it does seem rather simple, but I don't have sufficient experience with pseudo random number generation to estimate the properties of the sequences generated with above code. Can anybody tell me something about the properties/random quality of the sequences and their suitability for event generation?
Best regards,
Marius
|
|
|
Goto Forum:
Current Time: Thu Oct 10 16:06:20 CEST 2024
Total time taken to generate the page: 0.27488 seconds
|