Skip to main content

CCRandom

CCRandom

Cocos2D

Inheritance: System.Object

Constructors

CCRandom()

CCRandom()()

Methods

Float_0_1()

System.Single Float_0_1()()
Returns:
System.Single

Float_Minus1_1()

System.Single Float_Minus1_1()()
Returns:
System.Single

GetRandomFloat(float, float)

System.Single GetRandomFloat(float, float)(System.Single min, System.Single max)
Parameters:
min (System.Single)
max (System.Single)
Returns:
System.Single

GetRandomInt(int, int)

System.Int32 GetRandomInt(int, int)(System.Int32 min, System.Int32 max)
Parameters:
min (System.Int32)
max (System.Int32)
Returns:
System.Int32

Next()

System.Int32 Next()()
Returns:
System.Int32

Next(int)

System.Int32 Next(int)(System.Int32 max)
Parameters:
max (System.Int32)
Returns:
System.Int32

Next(int, int)

System.Int32 Next(int, int)(System.Int32 min, System.Int32 max)
Parameters:
min (System.Int32)
max (System.Int32)
Returns:
System.Int32

NextDouble()

System.Double NextDouble()()
Returns:
System.Double

Randomize(int)

Randomize(int)(System.Int32 seed)
Parameters:
seed (System.Int32)