5#ifndef DCPP_I_RANDOMIZER_HPP_INCLUDED
6#define DCPP_I_RANDOMIZER_HPP_INCLUDED
8#include <duckcpp/core/engine/IReferenceCounted.hpp>
Interface for generating random numbers.
Definition IRandomizer.hpp:15
virtual void reset(dcpp::int32_kt value=0x0f0f0f0f)=0
resets the randomizer
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()
virtual dcpp::int32_kt rand() const =0
generates a pseudo random number in the range 0..randMax()
Base class of most objects of the Duckcpp Engine.
Definition IReferenceCounted.hpp:46
As of Duckcpp 1.6, position2d is a synonym for vector2d.
Definition shared_device.hpp:34
float float32_kt
32 bit floating point variable.
Definition irrTypes.hpp:108
signed int int32_kt
32 bit signed variable.
Definition irrTypes.hpp:72