GSI Forum
GSI Helmholtzzentrum für Schwerionenforschung

Home » PANDA » PandaRoot » Event Generators » simpleEvtGen default EvtRandomEngine
simpleEvtGen default EvtRandomEngine [message #9149] Thu, 06 August 2009 17:57 Go to previous message
Marius Mertens is currently offline  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
 
Read Message
Read Message
Read Message icon4.gif
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: EvtGen Output Fixed Point Precision
Next Topic: Meaning of fSeed for dpm_gen__ in PndDpmDirect
Goto Forum:
  


Current Time: Sun Nov 28 00:24:22 CET 2021

Total time taken to generate the page: 0.02286 seconds