Interface for generating random numbers.
More...
#include <C:/Projects/skylicht-engine/Projects/Irrlicht/Include/IRandomizer.h>
|
| virtual void | reset (s32 value=0x0f0f0f0f)=0 |
| | resets the randomizer
|
|
virtual s32 | rand () const =0 |
| | generates a pseudo random number in the range 0..randMax()
|
|
virtual f32 | frand () const =0 |
| | generates a pseudo random number in the range 0..1
|
|
virtual s32 | randMax () const =0 |
| | get maxmimum 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.
|
| s32 | getReferenceCount () const |
| | Get the reference count.
|
| const c8 * | getDebugName () const |
| | Returns the debug name of the object.
|
|
| void | setDebugName (const c8 *newName) |
| | Sets the debug name of the object.
|
Interface for generating random numbers.
◆ reset()
| virtual void irr::IRandomizer::reset |
( |
s32 | value = 0x0f0f0f0f | ) |
|
|
pure virtual |
resets the randomizer
- Parameters
-
| value | Initialization value (seed) |
The documentation for this class was generated from the following file:
- C:/Projects/skylicht-engine/Projects/Irrlicht/Include/IRandomizer.h