BOSS 8.0.0
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 ()

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 24 of file EvtStdlibRandomEngine.hh.

24 {
25 double x = rand();
26 double y = RAND_MAX;
27 return x / y;
28 }
Double_t x[10]

◆ setSeed()

void EvtStdlibRandomEngine::setSeed ( unsigned int seed)
inline

Definition at line 22 of file EvtStdlibRandomEngine.hh.

22{ srand( seed ); }

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