Definition (random variables)
In a probability space $(\Omega, \mathcal F, \prob)$, a random variable is a function $$X: \Omega \to \R$$ such that for all $x\in\R$, $\sb{\omega\in\Omega}{X(\omega)\leq x} \in \mathcal F$.
We write $\set{X\leq x} \equiv \sb{\omega\in\Omega}{X(\omega)\leq x}$.
More generally, a random variable in $\R^n$ is a function $$ \v X = (X_1, \ldots, X_n): \Omega \to \R^n $$ such that $$\set{X_1\leq x_1, \ldots, X_n\leq x_n}\in\mathcal F.$$