Uncertainty quantification for numerical weather prediction and climate models by Monte Carlo methods