title: If Random variable is a function
body: <p>The basic definition of random variable is that it is a function based on random experiment.the question is that if it is a function say f then how can it take numerical values..
             Suppose if we toss two coins and X be random variable relating no. of heads with (0,1,2) .For event of two heads say w....we have X(w)=2 is value of function X at w. and not of X itself..
    But sometimes it is written that x is a r .v taking values 0,1,2,....
     Don't it sound wrong to say function and takes values?</p>