5#ifndef NIRT_I_RANDOMIZER_HPP_INCLUDED
6#define NIRT_I_RANDOMIZER_HPP_INCLUDED
8#include <nirtcpp/core/engine/IReferenceCounted.hpp>
Interface for generating random numbers.
Definition IRandomizer.hpp:15
virtual s32 randMax() const =0
get maximum number generated by rand()
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
Base class of most objects of the Nirtcpp Engine.
Definition IReferenceCounted.hpp:46
As of Nirtcpp 1.6, position2d is a synonym for vector2d.
Definition vector3d.hpp:11
signed int s32
32 bit signed variable.
Definition irrTypes.hpp:72
float f32
32 bit floating point variable.
Definition irrTypes.hpp:110