Robustness of optimal randomized decision trees with dynamic programming