using System; using System.Runtime.CompilerServices; using UnityEngine.Scripting; namespace UnityEngine { // Token: 0x020000A8 RID: 168 public sealed class Random { // Token: 0x170002AA RID: 682 // (get) Token: 0x06000BFB RID: 3067 // (set) Token: 0x06000BFC RID: 3068 [Obsolete("Deprecated. Use InitState() function or Random.state property instead.")] public static extern int seed { [GeneratedByOldBindingsGenerator] [MethodImpl(MethodImplOptions.InternalCall)] get; [GeneratedByOldBindingsGenerator] [MethodImpl(MethodImplOptions.InternalCall)] set; } // Token: 0x06000BFD RID: 3069 [GeneratedByOldBindingsGenerator] [MethodImpl(MethodImplOptions.InternalCall)] public static extern void InitState(int seed); // Token: 0x170002AB RID: 683 // (get) Token: 0x06000BFE RID: 3070 RVA: 0x00011218 File Offset: 0x0000F418 // (set) Token: 0x06000BFF RID: 3071 RVA: 0x00011238 File Offset: 0x0000F438 public static Random.State state { get { Random.State state; Random.INTERNAL_get_state(out state); return state; } set { Random.INTERNAL_set_state(ref value); } } // Token: 0x06000C00 RID: 3072 [GeneratedByOldBindingsGenerator] [MethodImpl(MethodImplOptions.InternalCall)] private static extern void INTERNAL_get_state(out Random.State value); // Token: 0x06000C01 RID: 3073 [GeneratedByOldBindingsGenerator] [MethodImpl(MethodImplOptions.InternalCall)] private static extern void INTERNAL_set_state(ref Random.State value); // Token: 0x06000C02 RID: 3074 [GeneratedByOldBindingsGenerator] [MethodImpl(MethodImplOptions.InternalCall)] public static extern float Range(float min, float max); // Token: 0x06000C03 RID: 3075 RVA: 0x00011244 File Offset: 0x0000F444 public static int Range(int min, int max) { return Random.RandomRangeInt(min, max); } // Token: 0x06000C04 RID: 3076 [GeneratedByOldBindingsGenerator] [MethodImpl(MethodImplOptions.InternalCall)] private static extern int RandomRangeInt(int min, int max); // Token: 0x170002AC RID: 684 // (get) Token: 0x06000C05 RID: 3077 public static extern float value { [GeneratedByOldBindingsGenerator] [MethodImpl(MethodImplOptions.InternalCall)] get; } // Token: 0x170002AD RID: 685 // (get) Token: 0x06000C06 RID: 3078 RVA: 0x00011260 File Offset: 0x0000F460 public static Vector3 insideUnitSphere { get { Vector3 vector; Random.INTERNAL_get_insideUnitSphere(out vector); return vector; } } // Token: 0x06000C07 RID: 3079 [GeneratedByOldBindingsGenerator] [MethodImpl(MethodImplOptions.InternalCall)] private static extern void INTERNAL_get_insideUnitSphere(out Vector3 value); // Token: 0x06000C08 RID: 3080 [GeneratedByOldBindingsGenerator] [MethodImpl(MethodImplOptions.InternalCall)] private static extern void GetRandomUnitCircle(out Vector2 output); // Token: 0x170002AE RID: 686 // (get) Token: 0x06000C09 RID: 3081 RVA: 0x00011280 File Offset: 0x0000F480 public static Vector2 insideUnitCircle { get { Vector2 vector; Random.GetRandomUnitCircle(out vector); return vector; } } // Token: 0x170002AF RID: 687 // (get) Token: 0x06000C0A RID: 3082 RVA: 0x000112A0 File Offset: 0x0000F4A0 public static Vector3 onUnitSphere { get { Vector3 vector; Random.INTERNAL_get_onUnitSphere(out vector); return vector; } } // Token: 0x06000C0B RID: 3083 [GeneratedByOldBindingsGenerator] [MethodImpl(MethodImplOptions.InternalCall)] private static extern void INTERNAL_get_onUnitSphere(out Vector3 value); // Token: 0x170002B0 RID: 688 // (get) Token: 0x06000C0C RID: 3084 RVA: 0x000112C0 File Offset: 0x0000F4C0 public static Quaternion rotation { get { Quaternion quaternion; Random.INTERNAL_get_rotation(out quaternion); return quaternion; } } // Token: 0x06000C0D RID: 3085 [GeneratedByOldBindingsGenerator] [MethodImpl(MethodImplOptions.InternalCall)] private static extern void INTERNAL_get_rotation(out Quaternion value); // Token: 0x170002B1 RID: 689 // (get) Token: 0x06000C0E RID: 3086 RVA: 0x000112E0 File Offset: 0x0000F4E0 public static Quaternion rotationUniform { get { Quaternion quaternion; Random.INTERNAL_get_rotationUniform(out quaternion); return quaternion; } } // Token: 0x06000C0F RID: 3087 [GeneratedByOldBindingsGenerator] [MethodImpl(MethodImplOptions.InternalCall)] private static extern void INTERNAL_get_rotationUniform(out Quaternion value); // Token: 0x06000C10 RID: 3088 RVA: 0x00011300 File Offset: 0x0000F500 [Obsolete("Use Random.Range instead")] public static float RandomRange(float min, float max) { return Random.Range(min, max); } // Token: 0x06000C11 RID: 3089 RVA: 0x0001131C File Offset: 0x0000F51C [Obsolete("Use Random.Range instead")] public static int RandomRange(int min, int max) { return Random.Range(min, max); } // Token: 0x06000C12 RID: 3090 RVA: 0x00011338 File Offset: 0x0000F538 public static Color ColorHSV() { return Random.ColorHSV(0f, 1f, 0f, 1f, 0f, 1f, 1f, 1f); } // Token: 0x06000C13 RID: 3091 RVA: 0x0001137C File Offset: 0x0000F57C public static Color ColorHSV(float hueMin, float hueMax) { return Random.ColorHSV(hueMin, hueMax, 0f, 1f, 0f, 1f, 1f, 1f); } // Token: 0x06000C14 RID: 3092 RVA: 0x000113B8 File Offset: 0x0000F5B8 public static Color ColorHSV(float hueMin, float hueMax, float saturationMin, float saturationMax) { return Random.ColorHSV(hueMin, hueMax, saturationMin, saturationMax, 0f, 1f, 1f, 1f); } // Token: 0x06000C15 RID: 3093 RVA: 0x000113EC File Offset: 0x0000F5EC public static Color ColorHSV(float hueMin, float hueMax, float saturationMin, float saturationMax, float valueMin, float valueMax) { return Random.ColorHSV(hueMin, hueMax, saturationMin, saturationMax, valueMin, valueMax, 1f, 1f); } // Token: 0x06000C16 RID: 3094 RVA: 0x00011418 File Offset: 0x0000F618 public static Color ColorHSV(float hueMin, float hueMax, float saturationMin, float saturationMax, float valueMin, float valueMax, float alphaMin, float alphaMax) { float num = Mathf.Lerp(hueMin, hueMax, Random.value); float num2 = Mathf.Lerp(saturationMin, saturationMax, Random.value); float num3 = Mathf.Lerp(valueMin, valueMax, Random.value); Color color = Color.HSVToRGB(num, num2, num3, true); color.a = Mathf.Lerp(alphaMin, alphaMax, Random.value); return color; } // Token: 0x020000A9 RID: 169 [Serializable] public struct State { // Token: 0x04000162 RID: 354 [SerializeField] private int s0; // Token: 0x04000163 RID: 355 [SerializeField] private int s1; // Token: 0x04000164 RID: 356 [SerializeField] private int s2; // Token: 0x04000165 RID: 357 [SerializeField] private int s3; } } }