16-Nov-2022 21:27:47 locker_simulation_test() 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.26 Maximum = 0.57 Mean = 0.39565 Variance = 0.00251249 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.33 Maximum = 0.67 Mean = 0.50066 Variance = 0.00248285 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 Maximum = 1 Mean = 0.50564 Variance = 0.124127 All players found their wallets 311 times out of 1000 locker_simulation_test() Normal end of execution. 16-Nov-2022 21:27:50