A more positive fact is the following.
If you drop the requirement that the probability measure be countably additive, and only require, instead, that it be finitely additive (just for the sake of this question), then for the rational numbers the answer is "yes".
The rational numbers are an additive group since one can add two rational numbers, there is a neutral element, zero, and any $z\in\mathbb{Q}$ has an additive inverse $-z\in\mathbb{Q}$.
Now, one can equip the rational numbers with the discrete topology so that they are a discrete group. (This is important because in other contexts it is more convenient not to do so and put another topology on them.)
Viewed as a discrete group, they are even a countable discrete group because there are only countably many rational numbers.
Also, they are an abelian group because $z +y =y+z$ for any pair of rational numbers.
Now, the rational numbers, viewed as a countable discrete group, are an amenable group. See here for the definition of an amenable discrete group. Here it is shown that every countable abelian discrete group is amenable. In particular, this applies to the group of rational numbers.
Therefore, by the very definition of an amenable discrete group, there exists a finitely additive probability measure $\mu$ on the rational numbers that is translation invariant, meaning that $\mu(z + A) = \mu(A)$ for any subset $A\subset\mathbb{Q}$ and any rational number $z\in\mathbb{Q}$.
This property encompasses the intuitive way of defining "uniformity".
$\mu$ necessarily vanishes on all finite subsets: $\mu(\{z\})=0$ for all $z\in\mathbb{Q}$.
If you seek a random variable instead of a probability measure, then just consider the identity function on the probability space $(\mathbb{Q}, \mu)$. This gives such a required random variable.
Therefore, if you relax your definition of probability measure a bit, you end up with a positive answer for the rational numbers.
Perhaps, the existence of $\mu$ seems a bit counter-intuitive. One can get a better idea of $\mu$ by taking into account that a direct consequence of the translation-invariance is that the measure of all rational numbers whose floor is even, is one half; also, the measure of those with odd floor is one half, and so on.
That measure $\mu$ that we just showed to exist, also necessarily vanishes on all bounded subsets (as one can show with a similar argument), in particular on the unit interval.
Therefore, $\mu$ does not immediately give an answer for the rational numbers in the unit interval. One would have thought that the answer is easier to give for the rational numbers in the unit interval instead of all rational numbers, but it seems to be the other way around.
(However, it also seems that one can cook up a probability measure on the rational numbers in the unit interval with similar properties, but the answer would then require a more precise definition of "uniformity" - maybe something along the lines of "translation-invariant whenever translation does not lead outside the unit interval".)
UPDATE: You immediately obtain a measure on the unit interval rationals that is uniform in that sense, by considering the push-forward measure of the one on the rationals, that we constructed, along the map from the rationals to the unit interval rationals that maps each rational to its fractional part.
Therefore, after relaxing the requirement to finite additivity, you obtain such measures in both cases you mentioned.