genrand_service Class Reference

PRNG service. Implemented by the core, do not reimplement. Use g_create() helper function to instantiate. More...

#include <genrand.h>

Inheritance diagram for genrand_service:

service_base

List of all members.

Public Types

typedef genrand_service t_interface_entrypoint
typedef genrand_service t_interface
typedef service_base t_interface_parent

Public Member Functions

virtual void seed (unsigned val)=0
 Seeds the PRNG with specified value.
virtual unsigned genrand (unsigned range)=0
 Returns random value N, where 0 <= N < range.

Static Public Member Functions

static service_ptr_t
< genrand_service
g_create ()

Static Public Attributes

static const GUID class_guid


Detailed Description

PRNG service. Implemented by the core, do not reimplement. Use g_create() helper function to instantiate.

Member Typedef Documentation

Reimplemented from service_base.


Member Function Documentation

virtual void genrand_service::seed ( unsigned  val  )  [pure virtual]

Seeds the PRNG with specified value.

virtual unsigned genrand_service::genrand ( unsigned  range  )  [pure virtual]

Returns random value N, where 0 <= N < range.

static service_ptr_t<genrand_service> genrand_service::g_create (  )  [inline, static]


Member Data Documentation

const GUID genrand_service::class_guid [static]

Initial value:

 
{ 0xc303a0f1, 0x8e88, 0x4539, { 0x87, 0xe5, 0x9e, 0x45, 0x5b, 0x7d, 0x54, 0x8c } }


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

Generated on Thu Aug 28 21:15:49 2008 for foobar2000 SDK by  doxygen 1.5.5