I do not get your first question, could you give some further explanation on what you want to do with it? On the other hand the second one is a bit weird. The mean is the expected value, therefore you do not expect any deviation from the mean. However, you can determine the number of trials for which you are almost certain that you find the mean. If that is what you were looking for, tell me and I'll try to help you.