If I perform a Monte Carlo simulation of a discrete random variable, I will get a list of results in a proportion that closely matches the probabilities of the discrete random variable e.g.
X is a discrete random variable with states: $P(X=0)=0.3, P(X=1)=0.3, P(X=2)=0.4$. If I perform a Monte Carlo simulation, I might get: $X = 2, 1, 1, 0, 2, 0, 2, 1, 0, 0, 1, 2, 0, 2, 2$.
I would then conclude that I am likely to get a result of X=0 five fifteenths of the time, X=1 four fifteenths of the time, and X=2 six fifteenths of the time. These fractions are all very close to the probabilities of the discrete random variable $(5/15 = 0.33 ≈ 0.3, 4/15 = 0.27 ≈ 0.3, 6/15 = 0.4 = 0.4)$.
My question is, what is the point of performing the simulation in the first place? I already knew that I'd get X=0 about 30% of the time, x=1 about 30% of the time, and x=2 about 40% of the time, just by looking at the discrete random variable.
Monte Carlo simulation is for approximating values that are not known or easily computed. Although an outcome may be dependent on events whose exact frequency is known, the frequency of outcomes may not be.
An early example is Buffan"s needles, using the toss of needles on a ruled plane with lines spaced equally as the needles' length. The counting of needles that cross a line yields a rational approximation of $\pi$. The events driving the trial can have uniform distribution, but the outcome is not so easily predicted.