08-Jan-2022 09:19:10 roulette_simulation_test(): MATLAB/Octave version 9.8.0.1380330 (R2020a) Update 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 78 2: 2 100 3: 3 90 4: 4 116 5: 5 106 6: 6 85 7: 7 97 8: 8 94 9: 9 103 10: 10 95 11: 11 98 12: 12 92 13: 13 99 14: 14 89 15: 15 116 16: 16 114 17: 17 96 18: 18 97 19: 19 106 20: 20 114 21: 21 104 22: 22 110 23: 23 89 24: 24 99 25: 25 97 26: 26 105 27: 27 116 28: 28 92 29: 29 102 30: 30 112 31: 31 100 32: 32 93 33: 33 103 34: 34 93 35: 35 97 36: 36 103 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 -640 -1160 -2860 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: 2 7: 4 8: 5 9: 6 10: 6 11: 6 12: 8 13: 9 14: 9 15: 10 16: 12 17: 14 18: 15 19: 16 20: 16 21: 16 22: 18 23: 18 24: 20 25: 21 26: 24 27: 24 28: 25 29: 27 30: 27 31: 28 32: 30 33: 32 34: 35 35: 35 36: 36 37: 36 38: 36 39: 40 40: 40 41: 42 42: 50 43: 50 44: 50 45: 60 46: 60 47: 60 48: 72 49: 80 50: 90 Unique values and frequencies: 1: 0 5 2: 2 1 3: 4 1 4: 5 1 5: 6 3 6: 8 1 7: 9 2 8: 10 1 9: 12 1 10: 14 1 11: 15 1 12: 16 3 13: 18 2 14: 20 1 15: 21 1 16: 24 2 17: 25 1 18: 27 2 19: 28 1 20: 30 1 21: 32 1 22: 35 2 23: 36 3 24: 40 2 25: 42 1 26: 50 3 27: 60 3 28: 72 1 29: 80 1 30: 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-Jan-2022 09:19:11