i6engine  1.0
i6e::utils::Random Class Reference

creates random numbers More...

#include <D:/Projekte/i6engine/libs/i6engine-utils/include/i6engine/utils/i6eRandom.h>

Public Member Functions

 ~Random ()
 destructor More...
 
uint32_t rand () const
 returns a random number in range of unsigned int More...
 
uint32_t rand (uint32_t max) const
 returns a random number in the range between 0 and max ([0;max[) More...
 
uint32_t rand (uint32_t min, uint32_t max) const
 returns a random number in the range between min and max ([min; max[) More...
 
void setSeed (uint32_t seed)
 sets a random seed value More...
 

Friends

class Singleton< Random >
 

Additional Inherited Members

- Static Public Member Functions inherited from i6e::utils::Singleton< Random >
static RandomGetSingletonPtr ()
 Returns a pointer to the Singleton class. More...
 
static RandomGetSingleton ()
 Returns a reference to the Singleton class. More...
 
- Protected Member Functions inherited from i6e::utils::Singleton< Random >
 Singleton ()
 
virtual ~Singleton ()
 

Detailed Description

creates random numbers

Definition at line 42 of file i6eRandom.h.

Constructor & Destructor Documentation

i6e::utils::Random::~Random ( )
inline

destructor

Definition at line 49 of file i6eRandom.h.

Member Function Documentation

uint32_t i6e::utils::Random::rand ( ) const
inline

returns a random number in range of unsigned int

Definition at line 56 of file i6eRandom.h.

uint32_t i6e::utils::Random::rand ( uint32_t  max) const
inline

returns a random number in the range between 0 and max ([0;max[)

Definition at line 63 of file i6eRandom.h.

uint32_t i6e::utils::Random::rand ( uint32_t  min,
uint32_t  max 
) const
inline

returns a random number in the range between min and max ([min; max[)

Definition at line 73 of file i6eRandom.h.

void i6e::utils::Random::setSeed ( uint32_t  seed)
inline

sets a random seed value

Definition at line 83 of file i6eRandom.h.

Friends And Related Function Documentation

friend class Singleton< Random >
friend

Definition at line 43 of file i6eRandom.h.


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