Cocos2d-x  v3.10
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Groups
RandomHelper Class Reference

A helper class for creating random number. More...

Static Public Member Functions

template<typename T >
static T random_real (T min, T max)
 The templat method for random real numbers. More...
 
template<typename T >
var random_real ( var min, var max)
 The templat method for random real numbers. More...
 
template<typename T >
local random_real ( local min, local max)
 The templat method for random real numbers. More...
 
template<typename T >
static T random_int (T min, T max)
 The templat method for random integer numbers. More...
 
template<typename T >
local random_int ( local min, local max)
 The templat method for random integer numbers. More...
 

Detailed Description

A helper class for creating random number.

Member Function Documentation

static T random_real ( min,
max 
)
inlinestatic

The templat method for random real numbers.

The minimum value of the random value. The maximum value of the random value. The random real value between min & max.

var random_real ( var  min,
var  max 
)
inlinestatic

The templat method for random real numbers.

The minimum value of the random value. The maximum value of the random value. The random real value between min & max.

local random_real ( local  min,
local  max 
)
inlinestatic

The templat method for random real numbers.

The minimum value of the random value. The maximum value of the random value. The random real value between min & max.

static T random_int ( min,
max 
)
inlinestatic

The templat method for random integer numbers.

The minimum value of the random value. The maximum value of the random value. The random integer value between min & max.

var random_int ( var  min,
var  max 
)
inlinestatic

The templat method for random integer numbers.

The minimum value of the random value. The maximum value of the random value. The random integer value between min & max.

local random_int ( local  min,
local  max 
)
inlinestatic

The templat method for random integer numbers.

The minimum value of the random value. The maximum value of the random value. The random integer value between min & max.


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