philsupertramp/game-math
Loading...
Searching...
No Matches
Static Public Member Functions | Static Private Member Functions | List of all members
Random Class Reference

#include <Random.h>

Static Public Member Functions

static void SetSeed (int seed)
 
static double Get (double l=0.0, double r=1.0)
 
template<typename T >
static vec2< T > Get (double l=0.0, double r=1.0)
 
template<typename T >
static vec3< T > Get (double l=0.0, double r=1.0)
 
template<typename T >
static vec4< T > Get (double l=0.0, double r=1.0)
 

Static Private Member Functions

static void InitTime (bool useSeed=true)
 

Detailed Description

RNG

Member Function Documentation

◆ Get() [1/4]

static double Random::Get ( double  l = 0.0,
double  r = 1.0 
)
inlinestatic

Getter for random number between (including borders) l and r

Parameters
l
r
Returns

◆ Get() [2/4]

template<typename T >
static vec2< T > Random::Get ( double  l = 0.0,
double  r = 1.0 
)
inlinestatic

random number generator for 2D-vectors

Template Parameters
T
Parameters
l
r
Returns

◆ Get() [3/4]

template<typename T >
static vec3< T > Random::Get ( double  l = 0.0,
double  r = 1.0 
)
inlinestatic

RNG for 3d vectors

Template Parameters
T
Parameters
l
r
Returns

◆ Get() [4/4]

template<typename T >
static vec4< T > Random::Get ( double  l = 0.0,
double  r = 1.0 
)
inlinestatic

RNG for vec4

Template Parameters
T
Parameters
l
r
Returns

◆ InitTime()

static void Random::InitTime ( bool  useSeed = true)
inlinestaticprivate

initialize and set seed

Parameters
useSeed

◆ SetSeed()

static void Random::SetSeed ( int  seed)
inlinestatic

sets seed to given value

Parameters
seed

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