Uncertainty Quantification of Partial and Ordinary Differential Equations with random coefficients