15-May-2025 20:47:31 roulette_simulation_test(): MATLAB/Octave version 6.4.0 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 111 2: 2 116 3: 3 104 4: 4 100 5: 5 98 6: 6 92 7: 7 93 8: 8 86 9: 9 102 10: 10 107 11: 11 89 12: 12 86 13: 13 103 14: 14 105 15: 15 81 16: 16 98 17: 17 90 18: 18 107 19: 19 87 20: 20 86 21: 21 108 22: 22 90 23: 23 111 24: 24 100 25: 25 118 26: 26 122 27: 27 101 28: 28 116 29: 29 119 30: 30 88 31: 31 93 32: 32 98 33: 33 118 34: 34 105 35: 35 86 36: 36 86 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 380 -1140 -2880 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: 2 11: 3 12: 4 13: 4 14: 5 15: 5 16: 6 17: 8 18: 8 19: 10 20: 10 21: 12 22: 14 23: 15 24: 15 25: 16 26: 18 27: 18 28: 20 29: 20 30: 24 31: 24 32: 25 33: 27 34: 30 35: 36 36: 40 37: 40 38: 40 39: 40 40: 45 41: 48 42: 50 43: 50 44: 56 45: 60 46: 60 47: 80 48: 80 49: 81 50: 100 Unique values and frequencies: 1: 0 9 2: 2 1 3: 3 1 4: 4 2 5: 5 2 6: 6 1 7: 8 2 8: 10 2 9: 12 1 10: 14 1 11: 15 2 12: 16 1 13: 18 2 14: 20 2 15: 24 2 16: 25 1 17: 27 1 18: 30 1 19: 36 1 20: 40 4 21: 45 1 22: 48 1 23: 50 2 24: 56 1 25: 60 2 26: 80 2 27: 81 1 28: 100 1 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. 15-May-2025 20:47:35