This document introduces simulation using MATLAB. It discusses how to generate random numbers from both discrete and continuous probability distributions using MATLAB commands or by converting uniformly distributed random numbers. For discrete distributions, the document shows how to generate random variables from the Bernoulli, binomial, Poisson, and geometric distributions. For continuous distributions, it explains the inverse transform method to generate random variables from exponential, gamma, normal, and other distributions by transforming uniformly distributed random numbers. The document also provides examples of MATLAB code to simulate coin tosses, generate random numbers from various distributions, and apply the Box-Muller transform to generate normal random variables. It concludes by reviewing useful MATLAB commands for commonly used discrete and continuous probability distributions.