In the article https://projecteuclid.org/download/pdf_1/euclid.aoms/1177704564 they describe procedure how to sample batch of size $n$ with nonuniform probabilities $p_i$, where probability of choosing $i$-th element is $np_i$ (assumption $np_i\leq 1$)(in the section (2.1)). I would be interested, how can you prove it because they don't provide any proof and also I am interested in probability of picking $i,j(i\ne j)$ in the same batch.
They procedure is following. Randomly order our given sequence, then label them $1,2,3,...,N$ and construct $\Pi_k = \sum_{i=1}^k np_i$ and $\Pi_0=0$, then pick $d$ uniformly from $[0,1)$ and your sample are elements for which inequality $$ \Pi_{j-1} \leq d+k < \Pi_{j} $$ holds for some $k = 1,2,...,n$.