![]() |
Duckcpp 2.1.0
Duckcpp is a high-performance c++ graphics engine.
|
Interface for generating random numbers. More...
#include <duckcpp/core/engine/IRandomizer.hpp>
Public Member Functions | |
virtual void | reset (dcpp::int32_kt value=0x0f0f0f0f)=0 |
resets the randomizer | |
virtual dcpp::int32_kt | rand () const =0 |
generates a pseudo random number in the range 0..randMax() | |
virtual dcpp::float32_kt | frand () const =0 |
generates a pseudo random number in the range 0..1 | |
virtual dcpp::int32_kt | randMax () const =0 |
get maximum number generated by rand() | |
![]() | |
IReferenceCounted () | |
Constructor. | |
virtual | ~IReferenceCounted () |
Destructor. | |
void | grab () const |
Grabs the object. Increments the reference counter by one. | |
bool | drop () const |
Drops the object. Decrements the reference counter by one. | |
dcpp::int32_kt | getReferenceCount () const |
Get the reference count. | |
const dcpp::char_kt * | getDebugName () const |
Returns the debug name of the object. | |
Additional Inherited Members | |
![]() | |
void | setDebugName (const dcpp::char_kt *newName) |
Sets the debug name of the object. | |
Interface for generating random numbers.
|
pure virtual |
resets the randomizer
value | Initialization value (seed) |