A helper class for creating random number.
More...
#include <ccRandom.h>
|
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) |
A helper class for creating random number.
static T random_int |
( |
T |
min, |
|
|
T |
max |
|
) |
| |
|
inlinestatic |
var random_int |
( |
var |
min, |
|
|
var |
max |
|
) |
| |
|
inlinestatic |
local random_int |
( |
local |
min, |
|
|
local |
max |
|
) |
| |
|
inlinestatic |
static T random_real |
( |
T |
min, |
|
|
T |
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:
- /Users/minggo/SourceCode/cocos2d-x/cocos/base/ccRandom.h