12-Feb-2019 08:07:40 uniform_test MATLAB version: Test uniform. BVEC_UNIFORM_TEST BVEC_UNIFORM computes a binary vector The initial seed is 123456789 0111110001 1110100111 1011011100 1101001000 0011011010 1000100101 1101110100 1000111111 1110000100 1010001100 C4_UNIFORM_01_TEST C4_UNIFORM_01 computes pseudorandom complex values in the unit circle. The initial seed is 123456789 1 ( 0.449860, -0.126667 ) 2 ( -0.843197, -0.344280 ) 3 ( 0.589627, 0.260090 ) 4 ( 0.391140, 0.323400 ) 5 ( -0.139466, -0.156136 ) 6 ( -0.236066, 0.077459 ) 7 ( 0.018599, -0.633214 ) 8 ( 0.892850, 0.010314 ) 9 ( -0.560465, 0.763795 ) 10 ( 0.306357, 0.026275 ) C4MAT_UNIFORM_01_TEST C4MAT_UNIFORM_01 computes pseudorandom complex values in the unit circle. The initial seed is 123456789 The Uniform C4MAT: Col: 1 2 Row --- 1: 0.449860 -0.126667 -0.236066 0.077459 2: -0.843197 -0.344280 0.018599 -0.633214 3: 0.589627 0.260090 0.892850 0.010314 4: 0.391140 0.323400 -0.560465 0.763795 5: -0.139466 -0.156136 0.306357 0.026275 C4VEC_UNIFORM_01_TEST C4VEC_UNIFORM_01 computes pseudorandom complex values in the unit circle. The initial seed is 123456789 The Uniform C4VEC: 1: 0.44986-0.12667i 2: -0.8432-0.34428i 3: 0.58963+0.26009i 4: 0.39114+0.3234i 5: -0.13947-0.15614i 6: -0.23607+0.077459i 7: 0.018599-0.63321i 8: 0.89285+0.010314i 9: -0.56047+0.7638i 10: 0.30636+0.026275i C8_UNIFORM_01_TEST C8_UNIFORM_01 computes pseudorandom complex values in the unit circle. The initial seed is 123456789 1 ( 0.449860, -0.126667 ) 2 ( -0.843197, -0.344280 ) 3 ( 0.589627, 0.260090 ) 4 ( 0.391140, 0.323400 ) 5 ( -0.139466, -0.156136 ) 6 ( -0.236066, 0.077459 ) 7 ( 0.018599, -0.633214 ) 8 ( 0.892850, 0.010314 ) 9 ( -0.560465, 0.763795 ) 10 ( 0.306357, 0.026275 ) C8MAT_UNIFORM_01_TEST C8MAT_UNIFORM_01 computes pseudorandom complex values in the unit circle. The initial seed is 123456789 The Uniform C8MAT: Col: 1 2 Row --- 1: 0.449860 -0.126667 -0.236066 0.077459 2: -0.843197 -0.344280 0.018599 -0.633214 3: 0.589627 0.260090 0.892850 0.010314 4: 0.391140 0.323400 -0.560465 0.763795 5: -0.139466 -0.156136 0.306357 0.026275 C8VEC_UNIFORM_01_TEST C8VEC_UNIFORM_01 computes pseudorandom complex values in the unit circle. The initial seed is 123456789 1 ( 0.449860, -0.126667 ) 2 ( -0.843197, -0.344280 ) 3 ( 0.589627, 0.260090 ) 4 ( 0.391140, 0.323400 ) 5 ( -0.139466, -0.156136 ) 6 ( -0.236066, 0.077459 ) 7 ( 0.018599, -0.633214 ) 8 ( 0.892850, 0.010314 ) 9 ( -0.560465, 0.763795 ) 10 ( 0.306357, 0.026275 ) 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 The initial seed is 123456789 1 C 2 J 3 I 4 F 5 E 6 A 7 C 8 B 9 A 10 G GET_SEED_TEST GET_SEED picks an initial seed value for R8_UNIFORM_01. The value chosen should vary over time, because the seed is based on reading the clock. This is just the "calendar" clock, which does not change very fast, so calling GET_SEED several times in a row may result in the same value. Initial seed is 12345678 Next 3 values of R8_UNIFORM_01: 0.621835 0.177248 0.002906 New seed from GET_SEED is 727302980 Next 3 values of R8_UNIFORM_01: 0.141685 0.299133 0.536308 New seed from GET_SEED is 727302996 Next 3 values of R8_UNIFORM_01: 0.141810 0.403738 0.625993 New seed from GET_SEED is 727303012 Next 3 values of R8_UNIFORM_01: 0.141935 0.508343 0.715678 New seed from GET_SEED is 727303030 Next 3 values of R8_UNIFORM_01: 0.142076 0.876023 0.316574 I4_SEED_ADVANCE_TEST I4_SEED_ADVANCE advances the seed. Step SEED input SEED 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 seed 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 The initial seed is 123456789 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 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 initial seed is 123456789 The uniform I4MAT: Col: 1 2 3 4 Row 1: -35 -81 -82 -100 2: 187 -23 35 170 3: 149 -67 20 5 4: 69 -87 127 -72 5: 25 90 139 -96 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 L4_UNIFORM_TEST L4_UNIFORM computes pseudorandom logical values. The initial seed is 123456789 1 0 2 1 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. The initial seed is 123456789 Uniform L4MAT: Col 1 2 3 4 Row 1: 0 0 0 0 2: 1 0 0 1 3: 1 0 0 0 4: 1 0 1 0 5: 0 1 1 0 L4VEC_UNIFORM_TEST L4VEC_UNIFORM computes a vector of pseudorandom logical values. The initial seed is 123456789 Uniform L4VEC: 1: F 2: T 3: T 4: T 5: F 6: F 7: F 8: F 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 984943664 0 5 1144209772 0 6 17579136 0 7 1246993408 0 8 392272896 0 9 155766782 0 10 189739376 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 = 984943664 BN = 0 C = 2147483647 J N In Out 1 0 12345 2 1 207482415 3 2 1790989824 4 3 2035175616 1 4 12345 77122766 2 5 207482415 1269688992 3 6 1790989824 118375680 4 7 2035175616 970667264 1 8 77122766 33672176 2 9 1269688992 493967104 3 10 118375680 1243963936 4 11 970667264 857676160 LCRG_SEED_TEST LCRG_SEED directly computes the updated value of a seed used by an linear congruential random number generator. I SEED SEED SEED 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 77122766 0.035879 5 77048696 24794531 1269689021 0.011546 6 24794531 109854999 118585573 0.051155 7 109854999 1644515420 970840064 0.765787 8 1644515420 1256127050 33277135 0.584930 9 1256127050 1963079340 943059725 0.914130 10 1963079340 1683198519 1575421490 0.783800 100 1549894482 99920864 1365307336 0.046529 1000 890151694 1408436056 785867306 0.655854 R4_UNIFORM_01_TEST R4_UNIFORM_01 computes pseudorandom values in the interval [0,1]. The initial seed 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 R4_UNIFORM_AB_TEST R4_UNIFORM_AB computes pseudorandom real values in the interval [RLO,RHI]. The lower endpoint RLO = 5.000000 The upper endpoint RHI = 10.000000 The initial seed is 123456789 1 6.092091 2 9.781588 3 9.147546 4 7.808477 5 7.076535 6 5.330594 7 6.287889 8 5.549784 9 5.219145 10 8.169829 R4MAT_UNIFORM_AB_TEST R4MAT_UNIFORM_AB computes a random R4MAT. -1 <= x <= 5 Initial seed is 123456789 Uniform R4MAT: Col: 1 2 3 4 Row 1 : 0.31051 -0.603288 -0.629637 -0.98897 2 : 4.73791 0.545467 1.69723 4.38502 3 : 3.97706 -0.340259 1.40784 1.10451 4 : 2.37017 -0.737026 3.52804 -0.432731 5 : 1.49184 2.80379 3.78372 -0.918299 R4VEC_UNIFORM_AB_TEST R4VEC_UNIFORM_AB computes a random R4VEC. -1 <= x <= 5 Initial seed is 123456789 Uniform R4VEC: 1: 0.31051 2: 4.73791 3: 3.97706 4: 2.37017 5: 1.49184 6: -0.603288 7: 0.545467 8: -0.340259 9: -0.737026 10: 2.80379 R8_UNIFORM_01_TEST R8_UNIFORM_01 computes pseudorandom double precision values in the unit interval. The initial seed 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 The initial seed is 123456789 1 6.092091 2 9.781588 3 9.147546 4 7.808477 5 7.076535 6 5.330594 7 6.287889 8 5.549784 9 5.219145 10 8.169829 R8MAT_UNIFORM_01_TEST R8MAT_UNIFORM_01 computes a random R8MAT. Initial seed is 123456789 Uniform R8MAT: Col: 1 2 3 4 Row 1 : 0.218418 0.0661187 0.0617272 0.00183837 2 : 0.956318 0.257578 0.449539 0.897504 3 : 0.829509 0.109957 0.401306 0.350752 4 : 0.561695 0.043829 0.754673 0.0945448 5 : 0.415307 0.633966 0.797287 0.0136169 R8MAT_UNIFORM_AB_TEST R8MAT_UNIFORM_AB computes a random R8MAT. -1 <= x <= 5 Initial seed is 123456789 Uniform R8MAT: Col: 1 2 3 4 Row 1 : 0.31051 -0.603288 -0.629637 -0.98897 2 : 4.73791 0.545467 1.69723 4.38502 3 : 3.97706 -0.340259 1.40784 1.10451 4 : 2.37017 -0.737026 3.52804 -0.432731 5 : 1.49184 2.80379 3.78372 -0.918299 R8VEC_UNIFORM_01_TEST R8VEC_UNIFORM_01 computes a random R8VEC. Initial seed is 123456789 Random R8VEC: 1: 0.218418 2: 0.956318 3: 0.829509 4: 0.561695 5: 0.415307 6: 0.0661187 7: 0.257578 8: 0.109957 9: 0.043829 10: 0.633966 R8VEC_UNIFORM_AB_TEST R8VEC_UNIFORM_AB computes a random R8VEC. -1 <= x <= 5 Initial seed is 123456789 Random R8VEC: 1: 0.31051 2: 4.73791 3: 3.97706 4: 2.37017 5: 1.49184 6: -0.603288 7: 0.545467 8: -0.340259 9: -0.737026 10: 2.80379 R8COL_UNIFORM_ABVEC_TEST R8COL_UNIFORM_ABVEC computes a random R8COL. Initial seed is 123456789 0.0000: 0.2184 0.0661 0.0617 0.0018 : 1.0000 0.2000: 0.2478 0.2129 0.2225 0.2449 : 0.2500 10.0000: 18.2951 11.0996 14.0131 13.5075 : 20.0000 52.0000: 53.1234 52.0877 53.5093 52.1891 : 54.0000 -1.0000: -0.1694 0.2679 0.5946 -0.9728 : 1.0000 R8ROW_UNIFORM_ABVEC_TEST R8ROW_UNIFORM_ABVEC computes a random R8ROW. Initial seed is 123456789 1.0000 0.2500 20.0000 54.0000 1.0000 0.2184 0.2478 18.2951 53.1234 -0.1694 0.0661 0.2129 11.0996 52.0877 0.2679 0.0617 0.2225 14.0131 53.5093 0.5946 0.0018 0.2449 13.5075 52.1891 -0.9728 0.0000 0.2000 10.0000 52.0000 -1.0000 R8VEC_UNIFORM_ABVEC_TEST R8VEC_UNIFORM_ABVEC computes a random R8VEC. Initial seed is 123456789 I A X B 1 0.0000 0.2184 1.0000 2 0.2000 0.2478 0.2500 3 10.0000 18.2951 20.0000 4 52.0000 53.1234 54.0000 5 -1.0000 -0.1694 1.0000 uniform_test: Normal end of execution. 12-Feb-2019 08:07:40