People make lots of confusion with "random variables". Given a probability space $(\Omega, \mathcal{B}, P)$, a random variable is simply a function $ X: \Omega \to \mathbb{R} $ that is Borel measurable (you can ignore this if you don't understand).
The naming seems to suggest that those "random variables" take "random" values for each $\omega \in \Omega$. That is, people seem to talk about the random variable as if $X(\omega)$ was not always the same. Informally, what is "random" here is the choice of $\omega$.
Suppose that the set $\Omega = \{1,\dotsc, 6\}$ represents the possible outcomes of a dice. Suppose that you are gambling (why else study probability?). For each outcome $\omega$, you get $X(\omega)$ Brazilian Reals (BRL). In a sense, the amount of money you will get on each roll of the dice is a "random" value. That is, it is a "random variable". The randomness comes from the dice itself, not from $X$. Now, I can ask you what is the probability that you will lose money. I can ask you what is the probability that you will get more then 5BRL. For example, the probability that you will get exactly 10BRL is the probability of getting any of the outcomes $X^{-1}(10)$. That is, $P\left(X^{-1}(10)\right)$.
Now, instead of writing $P\left(X^{-1}(10)\right)$, probabilists prefer to write $P(X = 10)$. Instead of writing $P\left(X^{-1}([a, b))\right)$, probabilists prefer to write $P(a \leq X < b)$. Or, if you just want to talk about the event, you can use the notation $ [X \in A] = X^{-1}(A), $ or its variants $[X < a]$, etc.
A random variable transports the probability (randomness) in $\Omega$ to a probability in $\mathbb{R}$. Namely, it transforms the probability $P$ over $\Omega$ into the probability $P \circ X^{-1}$, that takes a (Borel) set $A$ and attributes the probability $P(X^{-1}(A))$ to it.