Ответ: это зависит. Следующая программа-пример выведет средние значения для различных значений модуля. Очевидно, это не математическое доказательство, но оно уже должно дать вам представление о том, как ведут себя средние значения:
using System;
using System.Collections.Generic;
using System.Linq;
class Program
{
static Random rand;
static void Main(string[] args)
{
rand = new Random();
for (int modulus = 1; modulus < 1000; modulus++)
{
calculateAverage(modulus);
}
}
public static void calculateAverage(int modulus)
{
List<int> moduloList = new List<int>(100);
for (int i = 0; i < 100; i++)
{
int sum = 0;
for (int k = 0; k < 6; k++)
{
sum += rand.Next(0, 33);
}
moduloList.Add(sum % modulus);
}
Console.WriteLine("Average for modulus {0}: {1}", modulus, moduloList.Average());
}
}
Сгенерировано вывода:
Average for modulus 1: 0
Average for modulus 2: 0,49
Average for modulus 3: 1,03
Average for modulus 4: 1,47
Average for modulus 5: 1,96
Average for modulus 6: 2,55
Average for modulus 7: 3,03
Average for modulus 8: 3,42
Average for modulus 9: 4,15
Average for modulus 10: 5,06
Average for modulus 11: 4,62
Average for modulus 12: 5,9
Average for modulus 13: 5,82
Average for modulus 14: 6,8
Average for modulus 15: 7,28
Average for modulus 16: 7,8
Average for modulus 17: 8,15
Average for modulus 18: 9,34
Average for modulus 19: 9,2
Average for modulus 20: 10,36
Average for modulus 21: 9,74
Average for modulus 22: 9,41
Average for modulus 23: 11,5
Average for modulus 24: 11,51
Average for modulus 25: 11,45
Average for modulus 26: 13,05
Average for modulus 27: 12,59
Average for modulus 28: 14,92
Average for modulus 29: 13,1
Average for modulus 30: 14,1
Average for modulus 31: 15,5
Average for modulus 32: 16,46
Average for modulus 33: 16,54
Average for modulus 34: 16,38
Average for modulus 35: 19,61
Average for modulus 36: 17,26
Average for modulus 37: 15,96
Average for modulus 38: 19,44
Average for modulus 39: 17,07
Average for modulus 40: 17,73