Dali 3D User Interface Engine
Functions
Dali::Random Namespace Reference

Provides methods to generate and use random values. More...

Functions

float Range (float f0, float f1)
 Returns a random number between f0 and f1. More...
 
Vector4 Axis ()
 Function to return a normalized axis in a random direction. More...
 

Detailed Description

Provides methods to generate and use random values.

.0

Function Documentation

Vector4 Dali::Random::Axis ( )
inline

Function to return a normalized axis in a random direction.

.0

Returns
the axis

Definition at line 60 of file random.h.

References Dali::Vector4::Normalize(), Range(), Dali::Vector4::w, Dali::Vector4::x, Dali::Vector4::y, Dali::Vector4::z, and Dali::Vector4::ZERO.

Referenced by UtcDaliRandomAxisMethod().

Here is the call graph for this function:

Here is the caller graph for this function:

float Dali::Random::Range ( float  f0,
float  f1 
)
inline

Returns a random number between f0 and f1.

Note, uses a limited number of values. .0

Parameters
[in]f0the lower bound
[in]f1the upper bound
Returns
a random value between the lower and upper bound

Definition at line 47 of file random.h.

References Dali::Toolkit::Text::min().

Referenced by Axis(), and UtcDaliRandomRangeMethod().

Here is the call graph for this function:

Here is the caller graph for this function:

Dali Docs Home
Read more about Dali