If I understand right, you are asking: we have $N$ items grouped in $M$ groups $n_1,n_2 \cdots n_M$, $\sum n_i=N$, the items inside each group are undistinguishable . We want to count the number of ordered selections of $R\le N$ items .
Let $r_i$ be the number of elements selected from group $i$, $0\le r_i \le n_i$, $\sum r_i=R$.
Then he number of arrangements is
$$ \sum_{ 0\le r_i \le n_i\atop \sum r_i=r }\frac{r!}{r_1! r_2! \cdots r_m!}$$
Not very nice -even if $n_i=n$ is constant- I don't know if it can be simplified.
If $n_i=n$ is constant ($N=nM$), a recursion (for fixed $n$) could be useful, at least for numerical computation:
$$C^n_{M,R}=C^n_{M-1,R}+{R \choose 1} C^n_{M-1,R-1}+{R \choose 2} C^n_{M-1,R-2}+\cdots
=\sum_{k=0}^{ \min(R,n)}{R \choose k} C^n_{M-1,R-k} $$
rsamples in a random way. – youssef Jan 29 '15 at 13:02