Class Random
Assembly: UnityEngine.dll
Syntax
public sealed class Random
Properties
|
Improve this Doc
View Source
insideUnitCircle
Declaration
public static Vector2 insideUnitCircle { get; }
Property Value
insideUnitSphere
Declaration
public static Vector3 insideUnitSphere { get; }
Property Value
onUnitSphere
Declaration
public static Vector3 onUnitSphere { get; }
Property Value
rotation
Declaration
public static Quaternion rotation { get; }
Property Value
Declaration
public static Quaternion rotationUniform { get; }
Property Value
seed
Declaration
[Obsolete("Deprecated. Use InitState() function or Random.state property instead.")]
public static int seed { get; set; }
Property Value
state
Declaration
public static Random.State state { get; set; }
Property Value
value
Declaration
public static float value { get; }
Property Value
Methods
|
Improve this Doc
View Source
ColorHSV()
Declaration
public static Color ColorHSV()
Returns
|
Improve this Doc
View Source
ColorHSV(Single, Single)
Declaration
public static Color ColorHSV(float hueMin, float hueMax)
Parameters
Returns
|
Improve this Doc
View Source
ColorHSV(Single, Single, Single, Single)
Declaration
public static Color ColorHSV(float hueMin, float hueMax, float saturationMin, float saturationMax)
Parameters
Returns
|
Improve this Doc
View Source
ColorHSV(Single, Single, Single, Single, Single, Single)
Declaration
public static Color ColorHSV(float hueMin, float hueMax, float saturationMin, float saturationMax, float valueMin, float valueMax)
Parameters
Returns
|
Improve this Doc
View Source
ColorHSV(Single, Single, Single, Single, Single, Single, Single, Single)
Declaration
public static Color ColorHSV(float hueMin, float hueMax, float saturationMin, float saturationMax, float valueMin, float valueMax, float alphaMin, float alphaMax)
Parameters
Returns
InitState(Int32)
Declaration
public static void InitState(int seed)
Parameters
Type |
Name |
Description |
Int32 |
seed |
|
|
Improve this Doc
View Source
RandomRange(Int32, Int32)
Declaration
[Obsolete("Use Random.Range instead")]
public static int RandomRange(int min, int max)
Parameters
Returns
|
Improve this Doc
View Source
RandomRange(Single, Single)
Declaration
[Obsolete("Use Random.Range instead")]
public static float RandomRange(float min, float max)
Parameters
Returns
|
Improve this Doc
View Source
Range(Int32, Int32)
Declaration
public static int Range(int min, int max)
Parameters
Returns
Range(Single, Single)
Declaration
public static float Range(float min, float max)
Parameters
Returns
Extension Methods