6. From the set $\{1,2, \cdots, 2011\}$, any two different numbers $a, b$ are selected such that $a+b=n$ (where $n$ is some positive integer) with a probability of $\frac{1}{2011}$. Then the minimum value of $ab$ is
6.2010.

Let the number of ways such that $a+b=n$ be $k$. Then
$$
\frac{k}{\mathrm{C}_{2011}^{2}}=\frac{1}{2011} \Rightarrow k=1005 \text {. }
$$

Consider $a b$ to be as small as possible, and the number of ways such that $a+b=n$ is 1005.
Take $n=2011$. Then
$$
1+2010=2+2009=\cdots=1005+1006 \text {. }
$$

At this point, the number of ways such that $a+b=2011$ is exactly 1005.
Thus, the minimum value of $a b$ is $1 \times 2010=2010$.