cocos2d-x  3.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
RandomHelper Class Reference

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

#include <ccRandom.h>

Static Public Member Functions

template<typename T >
static T random_real (T min, T max)
template<typename T >
var random_real ( var min, var max)
template<typename T >
local random_real ( local min, local max)
template<typename T >
static T random_int (T min, T max)
template<typename T >
local random_int ( local min, local max)

Detailed Description

A helper class for creating random number.

Member Function Documentation

static T random_int ( min,
max 
)
inlinestatic
var random_int ( var  min,
var  max 
)
inlinestatic
local random_int ( local  min,
local  max 
)
inlinestatic
static T random_real ( min,
max 
)
inlinestatic
var random_real ( var  min,
var  max 
)
inlinestatic
local random_real ( local  min,
local  max 
)
inlinestatic

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