Random

More information can be found in the Unity API Reference

Static members

Member

Description

insideUnitCircle

insideUnitSphere

onUnitSphere

rotation

rotationUniform

value

Static methods

Method

Description

ColorHSV()

ColorHSV(hueMin, hueMax)

ColorHSV(hueMin, hueMax, saturationMin, saturationMax)

ColorHSV(hueMin, hueMax, saturationMin, saturationMax, valueMin, valueMax)

ColorHSV(hueMin, hueMax, saturationMin, saturationMax, valueMin, valueMax, alphaMin, alphaMax)

InitState(seed)

Range(minInclusive, maxInclusive)

RangeInteger(minInclusive, maxExclusive)

Details

class Random
static const Vector2 insideUnitCircle
static const Vector3 insideUnitSphere
static const Vector3 onUnitSphere
static const Quaternion rotation
static const Quaternion rotationUniform
static const float value
static Color ColorHSV()
static Color ColorHSV(float hueMin, float hueMax)
static Color ColorHSV(float hueMin, float hueMax, float saturationMin, float saturationMax)
static Color ColorHSV(float hueMin, float hueMax, float saturationMin, float saturationMax, float valueMin, float valueMax)
static Color ColorHSV(float hueMin, float hueMax, float saturationMin, float saturationMax, float valueMin, float valueMax, float alphaMin, float alphaMax)
static void InitState(int seed)
static float Range(float minInclusive, float maxInclusive)
static int RangeInteger(int minInclusive, int maxExclusive)