Open Lighting Architecture  0.9.6
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Functions
ola::math Namespace Reference

Detailed Description

Math helper functions.

Functions

void InitRandom ()
 Seed the random number generator.
int Random (int lower, int upper)
 Return a random number between lower and upper, inclusive. i.e. [lower, upper].

Function Documentation

int ola::math::Random ( int  lower,
int  upper 
)

Return a random number between lower and upper, inclusive. i.e. [lower, upper].

Parameters
lowerthe lower bound of the range the random number should be within
upperthe upper bound of the range the random number should be within
Returns
the random number