Mon Dec 19 08:54:30 2022 locker_simulation_test() Python version: 3.6.9 Test several strategies for the locker puzzle. strategy1_test(): Each player simply opens lockers at random. They may even open some lockers several times. Number of lockers was 100 Number of players was 100 Number of lockers a player can check 50 Number of trials was 1000 Success rate = number of players who found wallet / number of players. Minimum = 0.25 Maximum = 0.56 Mean = 0.39291000000000004 STD = 0.050813697956358185 All players found their wallets 0 times out of 1000 strategy2_test(): Each player opens lockers based on a random list. However, this list has no duplicates. Number of lockers was 100 Number of players was 100 Number of lockers a player can check 50 Number of trials was 1000 Success rate = number of players who found wallet / number of players. Minimum = 0.34 Maximum = 0.63 Mean = 0.5014299999999999 STD = 0.05049014854404768 All players found their wallets 0 times out of 1000 strategy3_test(): Each player starts at their own locker. Next try the locker corresponding to the wallet they found. Number of lockers was 100 Number of players was 100 Number of lockers a player can check 50 Number of trials was 1000 Success rate = number of players who found wallet / number of players. Minimum = 0.0 Maximum = 1.0 Mean = 0.49736 STD = 0.3589526854614686 All players found their wallets 313 times out of 1000 strategy4_test(): Each player starts at a random locker. Next try the locker corresponding to the wallet they found. Number of lockers was 100 Number of players was 100 Number of lockers a player can check 50 Number of trials was 1000 Success rate = number of players who found wallet / number of players. Minimum = 0.11 Maximum = 0.59 Mean = 0.37776 STD = 0.0856398411955557 All players found their wallets 0 times out of 1000 locker_simulation_test() Normal end of execution. Mon Dec 19 08:54:39 2022