$$ \binom n x \times\left(\frac1r\right)^x\times\left(\frac{r-1}r\right)^{n-x} $$
If you have $n$ boxes and have a $\frac1r$ chance to fill each one, this equation returns the chance that you fill exactly $x$ boxes. When $n$ and $r$ are given, the graph is a normal distribution.
I read about the Box-Muller algorithm to generate random normally distributed numbers, but I need the mean and standard deviation of the bell curve given $n$ and $r$.
I've been working for a while to try to make a formula for it, but to no avail. Help would be very welcome.
The distribution is not a normal distribution, it is a binomial distribution. But for large $N$ the normal distribution is an excellent approximation to the binomial distribution.
At any rate, the exact answer for the binomial distribution is that the mean is $\frac{n}{r}$ and the standard deviation is $$ \sqrt{npq} = \sqrt{n \frac{1}{r} \frac{r-1}{r}} = \frac{1}{r} \sqrt{n(r-1)}$$