23 August 2018 08:56:42 PM RAND48_TEST C++ version: Test the RAND48 library. TEST01 MRAND48 returns signed long integers in [-2^31,+2^31]. SRAND48 is used to initialize the seed (but only 32 bits). The initial seed is 123456789 1 225350349 2 109282078 3 426370030 4 1873164423 5 1407633314 6 -767930286 7 -1887667396 8 77984274 9 -546502010 10 -1492520027 The initial seed is 987654321 1 262732857 2 1269394970 3 -1006806726 4 -1780387357 5 2037832654 6 54685454 7 417233224 8 682485038 9 -1056262798 10 -1739865567 The initial seed is 123456789 1 225350349 2 109282078 3 426370030 4 1873164423 5 1407633314 6 -767930286 7 -1887667396 8 77984274 9 -546502010 10 -1492520027 TEST02 MRAND48 returns signed long integers in [-2^31,+2^31]. SEED48 is used to initialize the seed (all 48 bits). The initial seed is 0 The seed vector is 52501, 1883, 0 1 1820451251 2 1221384887 3 1220957452 4 2086077588 5 -284667191 6 -736789896 7 1878896603 8 -589698343 9 -1187374355 10 -249255936 The initial seed is 0 The seed vector is 26801, 15070, 0 1 1682170861 2 -657907747 3 1962344351 4 1886661327 5 -923961255 6 1905437568 7 -802670275 8 -1656418591 9 -991298421 10 -35022526 The initial seed is 0 The seed vector is 52501, 1883, 0 1 1820451251 2 1221384887 3 1220957452 4 2086077588 5 -284667191 6 -736789896 7 1878896603 8 -589698343 9 -1187374355 10 -249255936 TEST03 JRAND48 returns signed long integers in [-2^31,+2^31]. The 48 bit seed is an explicit argument, 3 16 bit values. The initial seed is 0 The seed vector is 52501, 1883, 0 1 1820451251 2 1221384887 3 1220957452 4 2086077588 5 -284667191 6 -736789896 7 1878896603 8 -589698343 9 -1187374355 10 -249255936 The initial seed is 0 The seed vector is 26801, 15070, 0 1 1682170861 2 -657907747 3 1962344351 4 1886661327 5 -923961255 6 1905437568 7 -802670275 8 -1656418591 9 -991298421 10 -35022526 The initial seed is 0 The seed vector is 52501, 1883, 0 1 1820451251 2 1221384887 3 1220957452 4 2086077588 5 -284667191 6 -736789896 7 1878896603 8 -589698343 9 -1187374355 10 -249255936 TEST04 LRAND48 returns unsigned long integers in [0,+2^31]. SRAND48 is used to initialize the seed (32 bits only). The initial seed is 123456789 1 112675174 2 54641039 3 213185015 4 936582211 5 703816657 6 1763518505 7 1203649950 8 38992137 9 1874232643 10 1401223634 The initial seed is 987654321 1 131366428 2 634697485 3 1644080285 4 1257289969 5 1018916327 6 27342727 7 208616612 8 341242519 9 1619352249 10 1277550864 The initial seed is 123456789 1 112675174 2 54641039 3 213185015 4 936582211 5 703816657 6 1763518505 7 1203649950 8 38992137 9 1874232643 10 1401223634 TEST05 LRAND48 returns unsigned long integers in [0,+2^31]. SEED48 is used to initialize the seed (all 48 bits). The initial seed is 0 The seed vector is 52501, 1883, 0 1 910225625 2 610692443 3 610478726 4 1043038794 5 2005150052 6 1779088700 7 939448301 8 1852634476 9 1553796470 10 2022855680 The initial seed is 0 The seed vector is 26801, 15070, 0 1 841085430 2 1818529774 3 981172175 4 943330663 5 1685503020 6 952718784 7 1746148510 8 1319274352 9 1651834437 10 2129972385 The initial seed is 0 The seed vector is 52501, 1883, 0 1 910225625 2 610692443 3 610478726 4 1043038794 5 2005150052 6 1779088700 7 939448301 8 1852634476 9 1553796470 10 2022855680 TEST06 NRAND48 returns nonnegative long integers in [0,+2^31]. The 48 bit seed is an explicit argument of 3 16 bit values. The initial seed is 0 The seed vector is 52501, 1883, 0 1 910225625 2 610692443 3 610478726 4 1043038794 5 2005150052 6 1779088700 7 939448301 8 1852634476 9 1553796470 10 2022855680 The initial seed is 0 The seed vector is 26801, 15070, 0 1 841085430 2 1818529774 3 981172175 4 943330663 5 1685503020 6 952718784 7 1746148510 8 1319274352 9 1651834437 10 2129972385 The initial seed is 0 The seed vector is 52501, 1883, 0 1 910225625 2 610692443 3 610478726 4 1043038794 5 2005150052 6 1779088700 7 939448301 8 1852634476 9 1553796470 10 2022855680 TEST07 DRAND48 returns double precision floating point values in [0.0,1.0]. SRAND48 is used to initialize the seed (32 bits only). The initial seed is 123456789 1 0.0524685 2 0.0254442 3 0.099272 4 0.43613 5 0.32774 6 0.821202 7 0.560493 8 0.0181571 9 0.872758 10 0.652496 The initial seed is 987654321 1 0.0611723 2 0.295554 3 0.765585 4 0.585471 5 0.47447 6 0.0127324 7 0.0971447 8 0.158903 9 0.75407 10 0.594906 The initial seed is 123456789 1 0.0524685 2 0.0254442 3 0.099272 4 0.43613 5 0.32774 6 0.821202 7 0.560493 8 0.0181571 9 0.872758 10 0.652496 TEST08 DRAND48 returns double precision real values in [0.0,1.0]. The 48 bit seed is an explicit argument of 3 16 bit values. The initial seed is 0 The seed vector is 52501, 1883, 0 1 0.423857 2 0.284376 3 0.284276 4 0.485703 5 0.933721 6 0.828453 7 0.437465 8 0.8627 9 0.723543 10 0.941966 The initial seed is 0 The seed vector is 26801, 15070, 0 1 0.391661 2 0.846819 3 0.456894 4 0.439273 5 0.784874 6 0.443644 7 0.813114 8 0.614335 9 0.769195 10 0.991846 The initial seed is 0 The seed vector is 52501, 1883, 0 1 0.423857 2 0.284376 3 0.284276 4 0.485703 5 0.933721 6 0.828453 7 0.437465 8 0.8627 9 0.723543 10 0.941966 TEST09 ERAND48 returns double precision real values in [0.0,1.0]. The 48 bit seed is an explicit argument of 3 16 bit values. The initial seed is 0 The seed vector is 52501, 1883, 0 1 0.423857 2 0.284376 3 0.284276 4 0.485703 5 0.933721 6 0.828453 7 0.437465 8 0.8627 9 0.723543 10 0.941966 The initial seed is 0 The seed vector is 26801, 15070, 0 1 0.391661 2 0.846819 3 0.456894 4 0.439273 5 0.784874 6 0.443644 7 0.813114 8 0.614335 9 0.769195 10 0.991846 The initial seed is 0 The seed vector is 52501, 1883, 0 1 0.423857 2 0.284376 3 0.284276 4 0.485703 5 0.933721 6 0.828453 7 0.437465 8 0.8627 9 0.723543 10 0.941966 RAND48_TEST Normal end of execution. 23 August 2018 08:56:42 PM