public static void Main()
var maxGamesToRun = 10000;
var nonSwitchWinCount = 0;
var randomGenerator = new Random();
while (gameCount < maxGamesToRun)
bool[] doors = {false,false,false};
var carLocation = randomGenerator.Next(0, 3);
doors[carLocation] = true;
var playerChoice = randomGenerator.Next(0, 3);
if (doors[playerChoice]) nonSwitchWinCount++;
Console.WriteLine($"Switch win rate {switchWinCount/100}");
Console.WriteLine($"Stand win rate {nonSwitchWinCount/100}");