The formal definition of a random variable is
Random variable over a sample space is a function from sample space to $R$
I want to get intuitively what actually it is doing. In this context, I had the following idea
A random variable is a method to search for actual input numbers (real numbers) for the probability measure function. Since sample space is a set of outcomes of a random experiment, they can be represented by any symbols and assigns a probability for such outcomes. In order to get the real numbers instead of symbols outcomes, we use random variables so that probability measure becomes a real function. So there are good random variables and bad random variables.
Is it correct? Are random variable for making probability measure function a real valued function?
From comments I came to know that there may be no superiority of a random variable over another, if it is the case, then is it true that for a particular sample space, there is no particular assignment of outcomes to real numbers that is desired inputs (for probability measure function) or useful in some way?