Monte Carlo simulation is a technique that uses random numbers and random variates to solve stochastic or deterministic problems that do not involve the passage of time. It is used to evaluate integrals of functions that cannot be directly integrated. The method involves defining a random variable equal to the function multiplied by the interval length and taking the sample mean of this random variable from running multiple simulations, which converges to the true expected value and integral.