public override double EvaluateNumber() { var from = FirstChild.EvaluateNumber(); var to = SecondChild.EvaluateNumber(); return(from + Random.NextDouble() * (to - from)); }
public override double EvaluateNumber() { return(Math.Max(FirstChild.EvaluateNumber(), SecondChild.EvaluateNumber())); }