float getNextActionWait() { int day = globals.GetComponent <TimerScript> ().getDay(); float min = 4 * Mathf.Pow(3f, -0.25f * day); float max = 4 * Mathf.Pow(2f, -0.25f * day); return(Random.Range(min, max)); }