1 2 3 4 5 6 7 8 9 10
>>> import random >>> res = [0,0,0,0,0,0] >>> for i in xrange(1000000): r = random.randrange(6) res[r] += 1 >>> res [167096, 167342, 166195, 166552, 166680, 166135] >>>