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

#include <EvtRandomEngine.hh>

+ Inheritance diagram for EvtRandomEngine:

Public Member Functions

virtual double random ()
 

Detailed Description

Definition at line 26 of file EvtRandomEngine.hh.

Member Function Documentation

◆ random()

double EvtRandomEngine::random ( )
virtual

Reimplemented in EvtBesRandom, and EvtStdlibRandomEngine.

Definition at line 31 of file 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}
Index next(Index i)
Definition: EvtCyclic3.cc:107

Referenced by EvtRandom::random().


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