Defintion of a Random Variable
Consider an experiment for which the sample space is denoted by S. A real-valued function that is defined on the space S is called a random variable. In other words, in a particular experiment a random variable X would be some function that assigns a real number X (s) to each possible outcome s S.