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

Extend this class in order to use your own random number generator with SilverLining. More...

#include <RandomNumberGenerator.h>

Public Member Functions

virtual ~RandomNumberGenerator ()
 Virtual destructor.
 
virtual void Reset ()
 Reset Function.
 
virtual float SILVERLINING_API UniformRandomFloat () const =0
 Return a uniformly distributed random float between 0.0 and 1.0.
 
virtual double SILVERLINING_API UniformRandomDouble () const =0
 Return a uniformly distributed random double between 0.0 and 1.0.
 
virtual unsigned int SILVERLINING_API UniformRandomIntRange (unsigned int start, unsigned int end) const =0
 Return a uniformly distributed random integer between the integers specified (inclusive.)
 
virtual void SILVERLINING_API Seed (unsigned int seedValue)=0
 Set a seed value for the random number generator.
 

Detailed Description

Extend this class in order to use your own random number generator with SilverLining.

Pass your implementation into Atmosphere::SetRandomNumberGenerator().

Constructor & Destructor Documentation

◆ ~RandomNumberGenerator()

virtual SilverLining::RandomNumberGenerator::~RandomNumberGenerator ( )
inlinevirtual

Virtual destructor.

Member Function Documentation

◆ Reset()

virtual void SilverLining::RandomNumberGenerator::Reset ( )
inlinevirtual

Reset Function.

Override to reset the seed for example.

◆ Seed()

virtual void SILVERLINING_API SilverLining::RandomNumberGenerator::Seed ( unsigned int  seedValue)
pure virtual

Set a seed value for the random number generator.


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