Static Public Member Functions

Tiny2D::Random Class Reference

Random numbers. More...

#include <Tiny2D.h>

List of all members.

Static Public Member Functions

static void Seed (int seed)
 Seeds/resets random number generator with given seed value; seeding with same value will result in same values generated by GetInt() and GetFloat()
static int GetInt (int minValue=0, int maxValue=32767)
 Gets random integer value in range; 'maxValue' must not exceed 32767.
static float GetFloat (float minValue=0.0f, float maxValue=1.0f)
 Gets random float value in range.

Detailed Description

Random numbers.


Member Function Documentation

static float Tiny2D::Random::GetFloat ( float  minValue = 0.0f,
float  maxValue = 1.0f 
) [static]

Gets random float value in range.

static int Tiny2D::Random::GetInt ( int  minValue = 0,
int  maxValue = 32767 
) [static]

Gets random integer value in range; 'maxValue' must not exceed 32767.

static void Tiny2D::Random::Seed ( int  seed ) [static]

Seeds/resets random number generator with given seed value; seeding with same value will result in same values generated by GetInt() and GetFloat()


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines