The Monte Carlo Method for the Study of an Electrical Discharge