Last active 1444019875

consensus.py

Revision 255ca9673f89f2612dfe46bf4cc460aeb9d573da

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