08-Oct-2025 14:28:32 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 95 2: 2 106 3: 3 112 4: 4 116 5: 5 97 6: 6 95 7: 7 98 8: 8 87 9: 9 83 10: 10 107 11: 11 110 12: 12 110 13: 13 111 14: 14 86 15: 15 94 16: 16 94 17: 17 106 18: 18 113 19: 19 92 20: 20 91 21: 21 99 22: 22 97 23: 23 81 24: 24 104 25: 25 98 26: 26 113 27: 27 95 28: 28 89 29: 29 107 30: 30 98 31: 31 110 32: 32 97 33: 33 118 34: 34 112 35: 35 94 36: 36 85 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 -860 40 -2520 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: 1 10: 2 11: 2 12: 3 13: 4 14: 4 15: 5 16: 6 17: 7 18: 8 19: 8 20: 8 21: 9 22: 10 23: 10 24: 12 25: 18 26: 20 27: 20 28: 21 29: 24 30: 27 31: 30 32: 30 33: 32 34: 32 35: 32 36: 40 37: 45 38: 48 39: 50 40: 54 41: 56 42: 56 43: 60 44: 63 45: 63 46: 64 47: 70 48: 70 49: 72 50: 81 Unique values and frequencies: 1: 0 8 2: 1 1 3: 2 2 4: 3 1 5: 4 2 6: 5 1 7: 6 1 8: 7 1 9: 8 3 10: 9 1 11: 10 2 12: 12 1 13: 18 1 14: 20 2 15: 21 1 16: 24 1 17: 27 1 18: 30 2 19: 32 3 20: 40 1 21: 45 1 22: 48 1 23: 50 1 24: 54 1 25: 56 2 26: 60 1 27: 63 2 28: 64 1 29: 70 2 30: 72 1 31: 81 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. 08-Oct-2025 14:28:35