--> 
          
    
            
@ILikePie5
            
          
      Code was wrong. I had a logic error. Here's the right version:
import numpy as np
def runSimulation(numMaf):
    players = [0]*numMaf + [1]*(10-numMaf)
    np.random.shuffle(players)
    players = players[5:]
    players.remove(1)
    np.random.shuffle(players)
    return players[0]
for i in range(2,5):
    sum = 0
    count = 0
    for j in range(50000):
        sum += runSimulation(i)
        count += 1
    print("For ", i, " scum, the odds of town victory with this strategy is", sum/count)
Results are not as optimistic:
For  2  scum, the odds of town victory with this strategy is 0.75044 
For  3  scum, the odds of town victory with this strategy is 0.62674
For  4  scum, the odds of town victory with this strategy is 0.5013
 
       
       
       
       
       
       
       
       
       
      