BOSS 7.0.9
BESIII Offline Software System
Loading...
Searching...
No Matches
EvtRandomEngine Class Reference

#include <EvtRandomEngine.hh>

+ Inheritance diagram for EvtRandomEngine:

Public Member Functions

virtual double random ()
 
virtual double random ()
 

Detailed Description

Member Function Documentation

◆ random() [1/2]

double EvtRandomEngine::random ( )
virtual

Reimplemented in EvtBesRandom, EvtStdlibRandomEngine, EvtBesRandom, and EvtStdlibRandomEngine.

Definition at line 31 of file bak-BesEvtGen-00-04-08/src/EvtGen/EvtGenBase/EvtRandomEngine.cc.

31 {
32
33 static unsigned long int next = 1;
34
35 next=next*1103515245+123345;
36 unsigned temp=(unsigned)(next/65536) % 32768;
37
38 return ( temp + 1.0 ) / 32769.0;
39
40}

Referenced by EvtRandom::random().

◆ random() [2/2]

virtual double EvtRandomEngine::random ( )
virtual

The documentation for this class was generated from the following files: