Convert probabilty.py to python3
This commit is contained in:
@@ -15,13 +15,13 @@ def main():
|
||||
employees.append(0)
|
||||
|
||||
count = 0
|
||||
for i in xrange(1, 1000001):
|
||||
for i in range(1, 1000001):
|
||||
temp = employees[:]
|
||||
shuffle(temp)
|
||||
if Counter(temp[0:11])[1] == 4:
|
||||
count += 1
|
||||
|
||||
print count / 1000000.
|
||||
print(count / 1000000.)
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
|
||||
Reference in New Issue
Block a user