| # Gaudi Framework, version v21r6 |

Home |  | Generated: 11 Nov 2009

# IRndmGenSvc Class Reference

`#include <GaudiKernel/IRndmGenSvc.h>`

Inheritance diagram for IRndmGenSvc:

[legend]
Collaboration diagram for IRndmGenSvc:

[legend]

List of all members.

## Detailed Description

Random Generator service interface definition Definition of a interface for a service to access random generators according to predefined distributions:.

The Random Generator creates proper instances of requested random generators and delivers them to the user.

On request the service dumps the type and state of the random number engine to a StreamBuffer object allowing to save and to restore the exact state of the random number generator.

Author:
  M.Frank

Version:
  1.0

Definition at line 36 of file IRndmGenSvc.h.

## Public Member Functions
| DeclareInterfaceID (IRndmGenSvc, 2, 0)
| InterfaceID.
virtual IRndmEngine * | engine ()=0
| Retrieve engine.
virtual StatusCode | generator (const IRndmGen::Param &par, IRndmGen *&refpGen)=0
| Add a Generator factory.

## Member Function Documentation

IRndmGenSvc::DeclareInterfaceID | ( | IRndmGenSvc | ,
|  | 2 | ,
|  | 0 |  |
| ) |  |  |

InterfaceID.

virtual IRndmEngine* IRndmGenSvc::engine | ( |  | ) | `[pure virtual]`

Retrieve engine.

Returns:
  pointer to random number engine

virtual StatusCode IRndmGenSvc::generator | ( | const IRndmGen::Param & | par,
|  | IRndmGen *& | refpGen |
| ) |  |  | `[pure virtual]`

Add a Generator factory.

Parameters:

  | fac | Pointer to factory to be added

Returns:
  StatusCode indicating success or failure.

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

- /afs/cern.ch/sw/Gaudi/releases/GAUDI/GAUDI_v21r6/GaudiKernel/GaudiKernel/IRndmGenSvc.h