20-Nov-2022 09:25:44 roulette_simulation_test(): MATLAB/Octave version 4.2.2 Test roulette_simulation(). roulette_result_test(): roulette_result() returns results of N spins of a roulette wheel with M = 36/37/38 pockets. M = 36 N = 3600 Value and frequency: 1: 1 118 2: 2 101 3: 3 109 4: 4 100 5: 5 90 6: 6 113 7: 7 105 8: 8 87 9: 9 102 10: 10 92 11: 11 94 12: 12 103 13: 13 108 14: 14 101 15: 15 83 16: 16 107 17: 17 103 18: 18 88 19: 19 111 20: 20 92 21: 21 91 22: 22 98 23: 23 105 24: 24 85 25: 25 106 26: 26 90 27: 27 93 28: 28 104 29: 29 105 30: 30 103 31: 31 94 32: 32 120 33: 33 118 34: 34 109 35: 35 83 36: 36 89 roulette_value_test(): roulette_value() returns the value of N spins of a roulette wheel with M = 36/37/38 pockets. Here, we bet $10 on red every time. M=36 M=37 M=38 -180 -520 -2840 i4vec_print_test(): i4vec_print() prints an I4VEC The I4VEC: 1: 91 2: 92 3: 93 4: 94 i4vec_sorted_unique_hist_test(): i4vec_sorted_unique_hist() is given a sorted array of integers, and returns the number of unique values, the unique values, and their frequency. The sorted vector: 1: 0 2: 0 3: 0 4: 0 5: 0 6: 0 7: 0 8: 0 9: 0 10: 0 11: 4 12: 4 13: 5 14: 6 15: 6 16: 7 17: 8 18: 8 19: 9 20: 10 21: 10 22: 12 23: 12 24: 12 25: 14 26: 14 27: 16 28: 18 29: 18 30: 20 31: 20 32: 20 33: 24 34: 24 35: 27 36: 28 37: 28 38: 30 39: 30 40: 32 41: 35 42: 48 43: 49 44: 50 45: 50 46: 54 47: 56 48: 64 49: 90 50: 90 Unique values and frequencies: 1: 0 10 2: 4 2 3: 5 1 4: 6 2 5: 7 1 6: 8 2 7: 9 1 8: 10 2 9: 12 3 10: 14 2 11: 16 1 12: 18 2 13: 20 3 14: 24 2 15: 27 1 16: 28 2 17: 30 2 18: 32 1 19: 35 1 20: 48 1 21: 49 1 22: 50 2 23: 54 1 24: 56 1 25: 64 1 26: 90 2 i4vec2_print_test(): i4vec2_print prints a pair of I4VECs I, sum of I, sum of I^2: 1: 0 0 2: 1 1 3: 3 5 4: 6 14 5: 10 30 6: 15 55 7: 21 91 8: 28 140 9: 36 204 10: 45 285 11: 55 385 roulette_simulation_test(): Normal end of execution. 20-Nov-2022 09:25:47