Numerical models in electromagnetism (EM) are becoming more and more accurate. In some applications, the gap between the experience and the model comes from the deviation on the input parameters which are uncertain. The stochastic approach can be used to quantify the effect of these parameter uncertainties on the outputs of the model. Different formulations available in the literature to solve static and quasistatic stochastic problems are presented.