Well, the constant outside of the sqrt function wouldn't have worked out to a nice round number like 1/2 in that instance, but the same basic principle applies.
Actually I just happened to remember that particular formula from high school.
Ya, my great "sin" was not really reading his whole post, not bothering to actually look up the formula on Google, and just noticing that his formulas didn't match each other on both sides of the = sign.
Admittedly, in this case, yes it certainly did, but as a programmer I never use single letter variables. The one exception is the letter i which I tend to use for doing iterations, which is a bad habit from originally learning basic as my first programming language.
True, and I also simplified the formula.
That same constant wouldn't work in every instance perhaps, but the formula could still be simplified by removing the probability constants from the sqrt function.
Well, let’s see. In that case:
Mean = NumberOfRolls/6
Sigma = Sqrt(NumberOfRolls * 1/6 * 5/6) = sqrt(NumberOfRolls * 5/36)
That would work out to sqrt(5)/6 * sqrt(NumberOfRolls)
Which roughly translates to .3727(sqrt(NumberOfRolls))
The constant outside of the sqrt function is essentially sqrt(Probability * (1 - Probability)) or alternatively you could say it's equal to the sqrt(SidesOfDie-1/SidesOfDie^2). If the number of sides of the die were 7, it would be sqrt(6/49) or roughly .3499. If the number of sides were 9, it would by sqrt(8/81) or roughly .3143. The constant changes slightly, but the concept is exactly the same.
And God help me if I made any typos......