Home License -- for personal use only. Not for government, academic, research, commercial, or other organizational use. 13-May-2025 17:16:58 roulette_simulation_test(): MATLAB/Octave version 9.11.0.2358333 (R2021b) Update 7 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 125 2: 2 96 3: 3 103 4: 4 91 5: 5 103 6: 6 97 7: 7 103 8: 8 96 9: 9 88 10: 10 102 11: 11 103 12: 12 111 13: 13 87 14: 14 99 15: 15 105 16: 16 120 17: 17 107 18: 18 105 19: 19 95 20: 20 84 21: 21 103 22: 22 85 23: 23 84 24: 24 112 25: 25 117 26: 26 100 27: 27 110 28: 28 94 29: 29 104 30: 30 101 31: 31 88 32: 32 103 33: 33 99 34: 34 89 35: 35 97 36: 36 94 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 -140 -1060 -980 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: 0 12: 1 13: 2 14: 4 15: 5 16: 5 17: 8 18: 9 19: 9 20: 9 21: 12 22: 12 23: 15 24: 15 25: 16 26: 18 27: 18 28: 18 29: 20 30: 24 31: 27 32: 30 33: 32 34: 40 35: 40 36: 40 37: 45 38: 45 39: 48 40: 50 41: 50 42: 50 43: 56 44: 70 45: 70 46: 72 47: 72 48: 80 49: 100 50: 100 Unique values and frequencies: 1: 0 11 2: 1 1 3: 2 1 4: 4 1 5: 5 2 6: 8 1 7: 9 3 8: 12 2 9: 15 2 10: 16 1 11: 18 3 12: 20 1 13: 24 1 14: 27 1 15: 30 1 16: 32 1 17: 40 3 18: 45 2 19: 48 1 20: 50 3 21: 56 1 22: 70 2 23: 72 2 24: 80 1 25: 100 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. 13-May-2025 17:16:58