07-Mar-2019 17:51:08 roulette_simulation_test: MATLAB version Test roulette_simulation. ROULETTE_RESULT_TEST ROULETTE_RESULTS returns results of N spins of a roulette wheel with M = 36/37/38 pockets. M = 36 N = 3600 The initial seed is 123456789 Value and frequency: 1: 1 107 2: 2 117 3: 3 94 4: 4 100 5: 5 97 6: 6 79 7: 7 115 8: 8 120 9: 9 97 10: 10 121 11: 11 122 12: 12 92 13: 13 96 14: 14 82 15: 15 87 16: 16 84 17: 17 110 18: 18 104 19: 19 90 20: 20 108 21: 21 111 22: 22 82 23: 23 101 24: 24 89 25: 25 104 26: 26 104 27: 27 84 28: 28 97 29: 29 100 30: 30 101 31: 31 111 32: 32 100 33: 33 103 34: 34 100 35: 35 102 36: 36 89 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. SEED M=36 M=37 M=38 123456780 -760 -540 -1880 123456781 1660 -1340 -2080 123456782 -140 -1540 -2360 123456783 20 -1320 -1880 123456784 380 300 -1880 123456785 1120 -660 -1900 123456786 360 -2380 -1720 123456787 -60 120 -3120 123456788 420 -1520 -1140 123456789 -960 -1140 -2980 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_TEST 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: 0 13: 3 14: 3 15: 4 16: 4 17: 6 18: 6 19: 8 20: 8 21: 9 22: 9 23: 10 24: 15 25: 18 26: 18 27: 18 28: 20 29: 20 30: 24 31: 24 32: 24 33: 24 34: 27 35: 28 36: 32 37: 36 38: 36 39: 36 40: 40 41: 42 42: 48 43: 54 44: 54 45: 54 46: 56 47: 63 48: 70 49: 70 50: 100 Unique values and frequencies: 1: 0 12 2: 3 2 3: 4 2 4: 6 2 5: 8 2 6: 9 2 7: 10 1 8: 15 1 9: 18 3 10: 20 2 11: 24 4 12: 27 1 13: 28 1 14: 32 1 15: 36 3 16: 40 1 17: 42 1 18: 48 1 19: 54 3 20: 56 1 21: 63 1 22: 70 2 23: 100 1 I4VEC_UNIFORM_AB_TEST I4VEC_UNIFORM_AB computes pseudorandom values in an interval [A,B]. The lower endpoint A = -100.000000 The upper endpoint B = 200.000000 The initial seed is 123456789 The random vector: 1: -35 2: 187 3: 149 4: 69 5: 25 6: -81 7: -23 8: -67 9: -87 10: 90 11: -82 12: 35 13: 20 14: 127 15: 139 16: -100 17: 170 18: 5 19: -72 20: -96 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. 07-Mar-2019 17:51:27