A random variable is a function that assigns a real number value to each outcome of an experiment involving chance. A random variable can be discrete, defined over a sample space with distinct outcomes, or continuous, defined over outcomes along a range. A probability distribution lists all possible outcomes of an experiment and their probabilities, with a discrete probability distribution specifically assigning probabilities to all values a discrete random variable can take.