I'm struggling with some basic concepts regarding the definitions of random variables.
If I'm not mistaken, random variables are functions which aim to "translate" outcomes of a sample space to a measurable space. As an example, the sample space composing the possible outcomes of a coin toss would be "head" or "tails". By assigning a mathematical function to these values, we can define them as ${[0,1]}$, allowing further analysis such as inferring the probability distribution of outcomes along multiple trials and the expected value of such a distribution.
The necessity of defining discrete outcomes as a random variable is pretty clear to me. What I do not understand is what kind of transformation a interval within a continuous sample space undergoes to be defined as a continuous random variable. Is there any difference between these two definitions (continuous sample space x continuous random variable)? Why do we define the probability distribution of a continuous random variable, instead of the probability distribution of a continuous sample space? Is it just a formalization?