cocos2d-x  3.3rc0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
ccRandom.h File Reference
#include "platform/CCPlatformMacros.h"
#include <random>

Classes

class  RandomHelper
 

Namespaces

 cocos2d
 Add deprecated global functions and variables here.
 

Functions

template<typename T >
(T min, T max)
 returns a random value between min and max More...
 
template<>
float  (float min, float max)
template<>
local  ( local min, local max)
template<>
long double  (long double min, long double max)
template<>
var  ( var min, var max)
template<>
local  ( local min, local max)
template<>
double  (double min, double max)
template<>
var  ( var min, var max)
template<>
local  ( local min, local max)
int  ()
 returns a random int between 0 and RAND_MAX More...
 
float  ()
 returns a random float between -1 and 1 More...
 
var  ()
 returns a random float between -1 and 1 More...
 
local  ()
 returns a random float between -1 and 1 More...
 
float  ()
 returns a random float between 0 and 1 More...
 
var  ()
 returns a random float between 0 and 1 More...
 
local  ()
 returns a random float between 0 and 1 More...