Пример #1
0
        public override double EvaluateNumber()
        {
            var from = FirstChild.EvaluateNumber();
            var to   = SecondChild.EvaluateNumber();

            return(from + Random.NextDouble() * (to - from));
        }
Пример #2
0
 public override double EvaluateNumber()
 {
     return(Math.Max(FirstChild.EvaluateNumber(), SecondChild.EvaluateNumber()));
 }