Nsound  0.9.4
Public Member Functions | List of all members
Nsound::RandomNumberGenerator Class Referenceabstract

Base class for random number generators. More...

#include <Nsound/RandomNumberGenerator.h>

Inheritance diagram for Nsound::RandomNumberGenerator:
Inheritance graph

Public Member Functions

virtual ~RandomNumberGenerator ()
virtual uint32 get ()=0
 Get a random number. More...
virtual float64 get (const float64 &min, const float64 &max)=0
 Get a random float64 between min & max. More...
virtual void setSeed (uint32 seed)=0
 Set the seed to use. More...

Detailed Description

Base class for random number generators.

Definition at line 43 of file RandomNumberGenerator.h.

Constructor & Destructor Documentation

virtual Nsound::RandomNumberGenerator::~RandomNumberGenerator ( )

Definition at line 48 of file RandomNumberGenerator.h.

48 {};

Member Function Documentation

virtual uint32 Nsound::RandomNumberGenerator::get ( )
pure virtual
virtual float64 Nsound::RandomNumberGenerator::get ( const float64 min,
const float64 max 
pure virtual

Get a random float64 between min & max.

Implemented in Nsound::RngTausworthe.

virtual void Nsound::RandomNumberGenerator::setSeed ( uint32  seed)
pure virtual

Set the seed to use.

Implemented in Nsound::RngTausworthe.

Referenced by Nsound::Generator::setSeed().

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