Nsound
0.9.4
|
Base class for random number generators. More...
#include <Nsound/RandomNumberGenerator.h>
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... | |
Base class for random number generators.
Definition at line 43 of file RandomNumberGenerator.h.
|
inlinevirtual |
Definition at line 48 of file RandomNumberGenerator.h.
|
pure virtual |
Get a random number.
Implemented in Nsound::RngTausworthe.
Referenced by Nsound::Generator::gaussianNoise(), Nsound::Generator::setChorus(), and Nsound::Generator::whiteNoise().
|
pure virtual |
Get a random float64 between min & max.
Implemented in Nsound::RngTausworthe.
|
pure virtual |
Set the seed to use.
Implemented in Nsound::RngTausworthe.
Referenced by Nsound::Generator::setSeed().