Simulation of the Monty Hall problem
This Node.js script simulates the Monty Hall problem with a given numer of iterations and a trigger if the selected door should be changed after one door has been opened.
The output is the percentage of iterations the sportscar has been selected.