|
|
|
|
|
by llimllib
6409 days ago
|
|
experimental evidence says that it is in fact a uniform distribution: r = random.Random()
def one_to_five():
return r.randint(1, 5)
def mod_seven():
return (sum(one_to_five() for x in xrange(7)) % 7) + 1
def test_dist(lst):
return [(x, lst.count(x)) for x in [1,2,3,4,5,6,7]]
|
|
http://spreadsheets.google.com/ccc?key=pq4tB7LQWN03gF7ImGhIP...