BOSS 8.0.0
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 30 of file EvtRandomEngine.cc.

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

Referenced by EvtRandom::random().


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