SkillzCrossPlatform.Random Class Reference

This is the Random class that you can use to implement fairness in your game Use this Random function for variables that can affect gameplay. More...

Static Public Member Functions

static float Value ()
 
static Vector3 InsideUnitSphere ()
 
static Vector2 InsideUnitCircle ()
 
static Vector3 OnUnitSphere ()
 
static Quaternion RotationUniform ()
 
static Quaternion Rotation ()
 
static float Range (float min, float max)
 
static int Range (int min, int max)
 

Detailed Description

This is the Random class that you can use to implement fairness in your game Use this Random function for variables that can affect gameplay.

Member Function Documentation

static Vector2 SkillzCrossPlatform.Random.InsideUnitCircle ( )
inlinestatic

Find a point inside the unit circle using Value()

static Vector3 SkillzCrossPlatform.Random.InsideUnitSphere ( )
inlinestatic

Find a point inside the unit sphere using Value()

static Vector3 SkillzCrossPlatform.Random.OnUnitSphere ( )
inlinestatic

Hybrid rejection / trig method to generate points on a sphere using Value()

static float SkillzCrossPlatform.Random.Range ( float  min,
float  max 
)
inlinestatic

Ranged random float using Value()

static int SkillzCrossPlatform.Random.Range ( int  min,
int  max 
)
inlinestatic

Ranged random int using Value()

static Quaternion SkillzCrossPlatform.Random.Rotation ( )
inlinestatic

Quaternion random using Value()

static Quaternion SkillzCrossPlatform.Random.RotationUniform ( )
inlinestatic

Quaternion random using Value()

static float SkillzCrossPlatform.Random.Value ( )
inlinestatic

Value from Skillz random (if a Skillz game), or Unity random (if not a Skillz game)


The documentation for this class was generated from the following file:
  • /Users/Shared/jenkins-slave/workspace/SDK-OLD/Cross-Platform-SDK/Cross-Platform-Unity-Package/UnityTestApps/Unity/Assets/Skillz/SkillzCrossPlatform.cs