A random variable is a variable whose value is unknown or a function that assigns values to each of an experiment's outcomes.