# Rational vs Irrational distribution

Imagine I draw a number line, and I took two points. What's the distribution of rational and irrational numbers between them? If I put it in a diagram where I color rational with a color and irrational with another color what pattern will I get?

For any continuous probability distribution on $\mathbb{R}$, the probability of picking a rational number is zero. In other words, if $X$ is a random variable which has a density, $$P(\mathbb{Q}) = 0 \text{.}$$
The reason is that for continuous probability distributions, its probability measure $\mathbb{P}$ is absolutely continuous compared to the lebesgue measure $\lambda$, meaning that for all sets $X$ with $\lambda(X) = 0$ you also have $\mathbb{P}(X) = 0$. And you have $\lambda(\mathbb{Q}) = 0$, because $$\lambda(\mathbb{Q}) = \lambda\left(\bigcup_{k\in\mathbb{N}} \{q_k\}\right) = \sum_{k=1}^\infty \lambda(\{q_k\}) = \sum_{k=1}^\infty 0 = 0$$ for every enumeration $(q_k)_{k\in\mathbb{N}}$ of the rational numbers. The same works, for the same reason, for any countable subset of $\mathbb{R}$.