Home License -- for personal use only. Not for government, academic, research, commercial, or other organizational use. 08-Oct-2025 00:16:04 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 105 3: 3 96 4: 4 104 5: 5 111 6: 6 91 7: 7 89 8: 8 113 9: 9 102 10: 10 102 11: 11 111 12: 12 96 13: 13 83 14: 14 78 15: 15 103 16: 16 98 17: 17 88 18: 18 109 19: 19 102 20: 20 99 21: 21 91 22: 22 100 23: 23 107 24: 24 117 25: 25 110 26: 26 106 27: 27 107 28: 28 117 29: 29 99 30: 30 110 31: 31 85 32: 32 77 33: 33 89 34: 34 91 35: 35 98 36: 36 91 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 -1200 -3980 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: 6 13: 7 14: 8 15: 9 16: 9 17: 10 18: 10 19: 12 20: 16 21: 16 22: 18 23: 20 24: 20 25: 21 26: 24 27: 24 28: 27 29: 27 30: 28 31: 30 32: 30 33: 32 34: 35 35: 35 36: 35 37: 36 38: 40 39: 40 40: 40 41: 42 42: 54 43: 56 44: 63 45: 63 46: 64 47: 70 48: 70 49: 72 50: 90 Unique values and frequencies: 1: 0 11 2: 6 1 3: 7 1 4: 8 1 5: 9 2 6: 10 2 7: 12 1 8: 16 2 9: 18 1 10: 20 2 11: 21 1 12: 24 2 13: 27 2 14: 28 1 15: 30 2 16: 32 1 17: 35 3 18: 36 1 19: 40 3 20: 42 1 21: 54 1 22: 56 1 23: 63 2 24: 64 1 25: 70 2 26: 72 1 27: 90 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 00:16:04