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

#include <EvtStdlibRandomEngine.hh>

+ Inheritance diagram for EvtStdlibRandomEngine:

Public Member Functions

void setSeed (unsigned int seed)
 
virtual double random ()
 
void setSeed (unsigned int seed)
 
virtual double random ()
 
virtual double random ()
 
virtual double random ()
 

Detailed Description

Member Function Documentation

◆ random() [1/2]

virtual double EvtStdlibRandomEngine::random ( )
inlinevirtual

Reimplemented from EvtRandomEngine.

Definition at line 28 of file bak-BesEvtGen-00-04-08/src/EvtGen/EvtGenBase/EvtStdlibRandomEngine.hh.

29 {
30 double x = rand();
31 double y = RAND_MAX;
32 return x/y;
33 }
Double_t x[10]
double y[1000]

◆ random() [2/2]

virtual double EvtStdlibRandomEngine::random ( )
inlinevirtual

Reimplemented from EvtRandomEngine.

Definition at line 28 of file BesEvtGen-00-04-08/src/EvtGen/EvtGenBase/EvtStdlibRandomEngine.hh.

29 {
30 double x = rand();
31 double y = RAND_MAX;
32 return x/y;
33 }

◆ setSeed() [1/2]

void EvtStdlibRandomEngine::setSeed ( unsigned int  seed)
inline

Definition at line 23 of file bak-BesEvtGen-00-04-08/src/EvtGen/EvtGenBase/EvtStdlibRandomEngine.hh.

24 {
25 srand(seed);
26 }

◆ setSeed() [2/2]

void EvtStdlibRandomEngine::setSeed ( unsigned int  seed)
inline

Definition at line 23 of file BesEvtGen-00-04-08/src/EvtGen/EvtGenBase/EvtStdlibRandomEngine.hh.

24 {
25 srand(seed);
26 }

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