When trying to find how to simulate rolling a variable amount of dice with a variable but unique number of sides, I read that the mean is $\dfrac{sides+1}{2}$, and that the standard deviation is $\sqrt{\dfrac{quantity\times(sides^2-1)}{12}}$.
I doubt that the $12$ comes from the formula because it seems strongly linked with the examples of using two six-sided dice.
Is the formula for the standard deviation correct? If not what is it?