summaryrefslogtreecommitdiff
path: root/Client/Assembly-CSharp/BoolRange.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Client/Assembly-CSharp/BoolRange.cs')
-rw-r--r--Client/Assembly-CSharp/BoolRange.cs10
1 files changed, 10 insertions, 0 deletions
diff --git a/Client/Assembly-CSharp/BoolRange.cs b/Client/Assembly-CSharp/BoolRange.cs
new file mode 100644
index 0000000..866c81b
--- /dev/null
+++ b/Client/Assembly-CSharp/BoolRange.cs
@@ -0,0 +1,10 @@
+using System;
+using UnityEngine;
+
+public class BoolRange
+{
+ public static bool Next(float p = 0.5f)
+ {
+ return UnityEngine.Random.value <= p;
+ }
+}