08-Jan-2022 10:57:08 uniform_test(): MATLAB/Octave version 9.8.0.1380330 (R2020a) Update 2 Test uniform(). BVEC_UNIFORM_TEST BVEC_UNIFORM computes a binary vector 1110011011 1110010110 0101111101 0101100001 1110001100 0101000110 0001111101 0100010101 1011011110 0001011100 C8_UNIFORM_01_TEST C8_UNIFORM_01 computes pseudorandom complex values in the unit circle. 1 ( 0.110615, -0.387229 ) 2 ( -0.548925, -0.099479 ) 3 ( -0.326265, -0.243310 ) 4 ( -0.290690, -0.422458 ) 5 ( -0.009642, -0.830133 ) 6 ( 0.580265, 0.337393 ) 7 ( 0.409311, -0.247874 ) 8 ( 0.179001, -0.346896 ) 9 ( 0.733502, -0.017818 ) 10 ( -0.261660, 0.098538 ) C8MAT_UNIFORM_01_TEST C8MAT_UNIFORM_01 computes pseudorandom complex values in the unit circle. The Uniform C8MAT: Col: 1 2 Row --- 1: 0.317263 -0.077438 0.556000 -0.349683 2: 0.010611 -0.067243 -0.036937 0.424833 3: 0.613438 -0.664076 0.250361 0.287852 4: -0.234849 0.171119 -0.817864 -0.447650 5: 0.157738 -0.484757 0.454653 0.585791 C8VEC_UNIFORM_01_TEST C8VEC_UNIFORM_01 computes pseudorandom complex values in the unit circle. 1 ( -0.665053, -0.640886 ) 2 ( -0.590361, -0.049261 ) 3 ( 0.563036, 0.291202 ) 4 ( 0.349989, 0.342672 ) 5 ( 0.027055, 0.427990 ) 6 ( 0.614778, 0.198279 ) 7 ( 0.893513, -0.323035 ) 8 ( -0.699020, 0.047275 ) 9 ( 0.470265, -0.341424 ) 10 ( 0.465267, 0.390862 ) ch_uniform_ab_test(): ch_uniform_ab() computes pseudorandom character values in the interval [CLO,CHI]. The lower endpoint CLO = A The upper endpoint CHI = J 1 H 2 D 3 C 4 E 5 A 6 B 7 J 8 J 9 F 10 A I4_key_ADVANCE_TEST I4_key_ADVANCE advances the key. Step key input key output 1 12345 207482415 2 207482415 1790989824 3 1790989824 2035175616 4 2035175616 77048696 5 77048696 24794531 6 24794531 109854999 7 109854999 1644515420 8 1644515420 1256127050 9 1256127050 1963079340 10 1963079340 1683198519 I4_UNIFORM_0I_TEST I4_UNIFORM_0I computes pseudorandom integers in the interval [1,(2^31)-1]. The initial key is 123456789 1 469049721 2 2053676357 3 1781357515 4 1206231778 5 891865166 6 141988902 7 553144097 8 236130416 9 94122056 10 1361431000 I4_UNIFORM_AB_TEST I4_UNIFORM_AB computes pseudorandom values in an interval [A,B]. The lower endpoint A = -100.000000 The upper endpoint B = 200.000000 1 -30 2 6 3 147 4 -96 5 -88 6 -50 7 95 8 120 9 94 10 35 11 64 12 -11 13 124 14 -44 15 106 16 -45 17 10 18 88 19 134 20 -76 I4MAT_UNIFORM_AB_TEST I4MAT_UNIFORM_AB computes pseudorandom values in an interval [A,B]. The lower endpoint A = -100.000000 The upper endpoint B = 200.000000 The uniform I4MAT: Col: 1 2 3 4 Row 1: 179 -8 93 182 2: 133 53 13 163 3: 46 53 144 65 4: 31 146 60 87 5: 34 139 5 76 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 random vector: 1: -38 2: -10 3: 41 4: -31 5: 154 6: -42 7: -32 8: -49 9: -32 10: 31 11: -7 12: 177 13: 29 14: -45 15: 172 16: 194 17: 32 18: -67 19: -23 20: 23 L4_UNIFORM_TEST L4_UNIFORM computes pseudorandom logical values. 1 1 2 0 3 1 4 1 5 0 6 0 7 0 8 0 9 0 10 1 L4MAT_UNIFORM_TEST L4MAT_UNIFORM computes a vector of pseudorandom logical values. Uniform L4MAT: Col 1 2 3 4 Row 1: 0 1 1 1 2: 0 0 1 1 3: 1 1 1 0 4: 0 0 0 0 5: 1 0 0 1 L4VEC_UNIFORM_TEST L4VEC_UNIFORM computes a vector of pseudorandom logical values. Uniform L4VEC: 1: F 2: T 3: T 4: T 5: F 6: F 7: F 8: T 9: F 10: T LCRG_ANBN_TEST LCRG_ANBN determines a linear congruential random number generator equivalent to N steps of a given one. LCRG parameters: A = 16807 B = 0 C = 2147483647 N A B 0 1 0 1 16807 0 2 282475249 0 3 1622650073 0 4 984943657 0 5 1144092123 0 6 187736030 0 7 625861181 0 8 1635447193 0 9 1317774798 0 10 842178466 0 N In Out 0 12345 1 12345 207482415 2 207482415 1790989824 3 1790989824 2035175616 4 2035175616 77048696 5 77048696 24794531 6 24794531 109854999 7 109854999 1644515420 8 1644515420 1256127050 9 1256127050 1963079340 10 1963079340 1683198519 11 1683198519 715426902 LCRG parameters: AN = 984943657 BN = 0 C = 2147483647 J N In Out 1 0 12345 2 1 207482415 3 2 1790989824 4 3 2035175616 1 4 12345 77036351 2 5 207482415 1964795756 3 6 1790989824 466348822 4 7 2035175616 1756823515 1 8 77036351 1102041996 2 9 1964795756 1668817959 3 10 466348822 1106994692 4 11 1756823515 220939944 LCRG_key_TEST LCRG_key directly computes the updated value of a key used by an linear congruential random number generator. I key key key U Input Output LCRG 1 12345 207482415 207482415 0.096617 2 207482415 1790989824 1790989824 0.833995 3 1790989824 2035175616 2035175616 0.947702 4 2035175616 77048696 77036351 0.035879 5 77048696 24794531 1964795763 0.011546 6 24794531 109854999 466435237 0.051155 7 109854999 1644515420 1757601186 0.765787 8 1644515420 1256127050 1101832138 0.584930 9 1256127050 1963079340 741255285 0.914130 10 1963079340 1683198519 724827643 0.783800 100 1549894482 99920864 233677336 0.046529 1000 890151694 1408436056 447850747 0.655854 r8_uniform_01_test r8_uniform_01 computes pseudorandom double precision values in the unit interval. The initial key is 123456789 1 0.218418 2 0.956318 3 0.829509 4 0.561695 5 0.415307 6 0.066119 7 0.257578 8 0.109957 9 0.043829 10 0.633966 R8_UNIFORM_AB_TEST R8_UNIFORM_AB computes pseudorandom double precision values in the interval [DLO,DHI]. The lower endpoint DLO = 5.000000 The upper endpoint DHI = 10.000000 1 5.533809 2 8.268787 3 7.470870 4 8.895259 5 8.575185 6 9.518603 7 9.454613 8 6.670815 9 8.493729 10 5.989049 R8MAT_UNIFORM_01_TEST R8MAT_UNIFORM_01 computes a random R8MAT. Uniform R8MAT: Col: 1 2 3 4 Row 1 : 0.0305409 0.609867 0.182922 0.167927 2 : 0.744074 0.617666 0.239932 0.978681 3 : 0.500022 0.859442 0.886512 0.712694 4 : 0.479922 0.805489 0.0286742 0.500472 5 : 0.904722 0.576722 0.489901 0.471088 R8MAT_UNIFORM_AB_TEST R8MAT_UNIFORM_AB computes a random R8MAT. -1 <= x <= 5 Uniform R8MAT: Col: 1 2 3 4 Row 1 : -0.642287 -0.41962 2.95763 1.72279 2 : 3.09183 3.90889 2.11157 1.59435 3 : -0.745413 3.90528 4.83785 3.95188 4 : -0.571327 3.33464 2.89395 -0.499181 5 : 2.1299 -0.100807 3.80198 -0.200974 R8VEC_UNIFORM_01_TEST R8VEC_UNIFORM_01 computes a random R8VEC. Random R8VEC: 1: 0.173389 2: 0.390938 3: 0.83138 4: 0.803364 5: 0.0604712 6: 0.399258 7: 0.526876 8: 0.416799 9: 0.65686 10: 0.627973 R8VEC_UNIFORM_AB_TEST R8VEC_UNIFORM_AB computes a random R8VEC. -1 <= x <= 5 Random R8VEC: 1: 0.751904 2: 1.58991 3: -0.907077 4: 4.90438 5: 0.00301046 6: -0.362702 7: 1.23446 8: 0.18871 9: 1.93813 10: 1.03696 R8COL_UNIFORM_ABVEC_TEST R8COL_UNIFORM_ABVEC computes a random R8COL. 0.0000: 0.9516 0.4228 0.3015 0.6665 : 1.0000 0.2000: 0.2460 0.2274 0.2351 0.2089 : 0.2500 10.0000: 10.5268 19.4274 16.6634 11.2801 : 20.0000 52.0000: 53.4757 52.8355 53.0783 53.9982 : 54.0000 -1.0000: -0.4618 0.9661 0.3962 -0.6578 : 1.0000 R8ROW_UNIFORM_ABVEC_TEST R8ROW_UNIFORM_ABVEC computes a random R8ROW. 1.0000 0.2500 20.0000 54.0000 1.0000 0.0326 0.2095 11.5640 52.3818 0.1790 0.5612 0.2184 18.5552 52.8565 -0.5476 0.8819 0.2230 16.4476 52.9640 -0.2308 0.6692 0.2491 13.7627 52.2412 0.1660 0.0000 0.2000 10.0000 52.0000 -1.0000 R8VEC_UNIFORM_ABVEC_TEST R8VEC_UNIFORM_ABVEC computes a random R8VEC. I A X B 1 0.0000 0.2518 1.0000 2 0.2000 0.2145 0.2500 3 10.0000 16.1709 20.0000 4 52.0000 52.5306 54.0000 5 -1.0000 0.6488 1.0000 uniform_test(): Normal end of execution. 08-Jan-2022 10:57:09