Abstract
The paper describes the main methods for computer simulation of discrete and continuous random variables. We also consider applications of the Monte Carlo method to the estimation of the ruin probability for both individual and collective risk models.