Last active 1444019875

consensus.py

Revision 98e36239499b04e6b3bf2b03ba344a6fb037b20c

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