CGEM BOSS 6.6.5.i
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 ()
 
- Public Member Functions inherited from EvtRandomEngine

Detailed Description

Definition at line 20 of file EvtStdlibRandomEngine.hh.

Member Function Documentation

◆ random()

virtual double EvtStdlibRandomEngine::random ( )
inlinevirtual

Reimplemented from EvtRandomEngine.

Definition at line 28 of file EvtStdlibRandomEngine.hh.

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

◆ setSeed()

void EvtStdlibRandomEngine::setSeed ( unsigned int seed)
inline

Definition at line 23 of file EvtStdlibRandomEngine.hh.

24 {
25 srand(seed);
26 }

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