Last active 1444019875

consensus.py

Revision 3bd3cfb1ca36779bb40c32a2e68b9cdf9c4a80b2

consensus.py Raw
1import random
2x = 0
3v = "0"
4int1 = 1
5int2 = 2
6random.seed()
7while x != 1000:
8 v = v + " " + str(random.randint(int1,int2))
9 x += 1
10vlist = list(v)
11print max(set(vlist), key=vlist.count)