>>9379407
I wrote up a python(3.6) script for you anon.
1/3 :
import random as rnd
def mghtnotexist(changeChoice):
D = [0,0,0,0,0]
w = rnd.randint(0,4) #randomly select door as winner
D[w] = 1 # set random element in D to 1 which is the winnig thing.
choice = rnd.randint(0,4)
# print (D)
# print(choice)
#remove all elements besides for the choice and one other.
DTwoChoices = []
DTwoChoices.append(D[choice])
del D[choice]
iterations = len(D)-1
for i in range(iterations):
s = rnd.randint(0,len(D)-1)
del D
# print("We are going throught the iterations at ", i, "we randomly selected the index ", s, "and D is now: ", D)
DTwoChoices.append(D[0])
# print(DTwoChoices)
if changeChoice == 1:
return DTwoChoices[1]
else:
return DTwoChoices[0]