1 2 3 4 5 6 7 8 9 10
using System; using UnityEngine; public class BoolRange { public static bool Next(float p = 0.5f) { return UnityEngine.Random.value <= p; } }