15-Nov-2022 10:34:46 dice_simulation_test(): MATLAB/Octave version 9.8.0.1380330 (R2020a) Update 2 Test dice_simulation(). dice_simulation(): Simulate throwing and totaling 1 dice 100 times. Graphics saved as "dice_freq_100_1.png" Graphics saved as "dice_prob_100_1.png" Number of dice = 1 Number of throws = 100 Maximum possible score = 6 Average score = 3.330000 Minimum possible score = 1 Variance of score = 2.627374 dice_simulation(): Simulate throwing and totaling 2 dice 1000 times. Graphics saved as "dice_freq_1000_2.png" Graphics saved as "dice_prob_1000_2.png" Number of dice = 2 Number of throws = 1000 Maximum possible score = 12 Average score = 6.920000 Minimum possible score = 2 Variance of score = 5.721321 dice_simulation(): Simulate throwing and totaling 3 dice 10000 times. Graphics saved as "dice_freq_10000_3.png" Graphics saved as "dice_prob_10000_3.png" Number of dice = 3 Number of throws = 10000 Maximum possible score = 18 Average score = 10.471700 Minimum possible score = 3 Variance of score = 8.837483 dice_simulation(): Simulate throwing and totaling 4 dice 100000 times. Graphics saved as "dice_freq_100000_4.png" Graphics saved as "dice_prob_100000_4.png" Number of dice = 4 Number of throws = 100000 Maximum possible score = 24 Average score = 13.993760 Minimum possible score = 4 Variance of score = 11.644278 Graphics saved as "dice_pdf_exact_plot_2.png" normal_approximation(): Plot the sum of 10 random values, as an approximation to the normal curve. Graphics saved as "normal_approximation" dice_simulation_test(): Normal end of execution. 15-Nov-2022 10:34:55