Tue Oct 19 17:09:00 2021 rnglib_test() Python version: 3.6.9 Test rnglib(). initialize: The rnglib package has been initialized. i4_uni_test Python version: 3.6.9 i4_uni returns a random positive integer. 695163044 696626468 1059541850 620042603 758075822 330628445 1215929140 1762482382 698994348 730315574 1922376880 722841757 612082173 1081002351 1661144525 45434058 79485022 624052430 184849954 1605430415 i4_uni_test: Normal end of execution. r8_uni_01_test Python version: 3.6.9 r8_uni_01 produces a sequence of random values. r8_uni_01() 0.359446 0.208128 0.0797663 0.147932 0.708155 0.395446 0.76442 0.645941 0.473061 0.859549 r8_uni_01_test Normal end of execution. rnglib_test03 r4_uni_01 ( ) returns a random real number in [0,1] using the current generator. initialize initializes the random number generator. It only needs to be called once before using the package. initialize: The rnglib package has been initialized. init_generator can reset the seed to the initial value, the last (previous) value, or a new seed. Current generator index = 17 init_generator ( 0 ) starts at the initial seed. I r4_uni_01 ( ) 1 0.088214 2 0.657037 3 0.539546 4 0.601055 5 0.903791 6 0.536099 7 0.540644 8 0.0690313 9 0.725607 Calling init_generator ( 0 ) again restarts at the initial seed. I r4_uni_01 ( ) 1 0.088214 2 0.657037 3 0.539546 4 0.601055 5 0.903791 6 0.536099 7 0.540644 8 0.0690313 9 0.725607 Calling init_generator ( 2 ) restarts at a new "far ahead" seed. I r4_uni_01 ( ) 1 0.154887 2 0.437351 3 0.288705 4 0.761692 5 0.598874 6 0.677101 7 0.187499 8 0.399729 9 0.316604 Calling init_generator ( 1 ) restarts at the last seed (in this case, the "far ahead" seed specified on the previous call.) I r4_uni_01 ( ) 1 0.23759 2 0.287315 3 0.326637 (Reset to last seed) 4 0.154887 5 0.437351 6 0.288705 (Reset to last seed) 7 0.154887 8 0.437351 9 0.288705 (Reset to last seed) 10 0.154887 rnglib_test03: Normal end of execution. rnglib_test04 r4_uni_01 ( ) returns a random real number in [0,1] using the current generator. initialize initializes the random number generator. It only needs to be called once before using the package. initialize: The rnglib package has been initialized. Let us call generators #3, #6 and #9. initialize generator 3 initialize generator 6 initialize generator 9 I r4_uni_01 ( 3 ) r4_uni_01 ( 6 ) r4_uni_01 ( 9 ) 1 0.545589 0.580718 0.178429 2 0.607802 0.77121 0.558254 3 0.26652 0.31139 0.102241 4 0.0562018 0.995434 0.395244 5 0.881036 0.511026 0.83224 6 0.767427 0.450787 0.459968 7 0.405501 0.320508 0.0270091 8 0.37931 0.106053 0.0279301 9 0.520144 0.655542 0.00773636 10 0.358031 0.289157 0.586721 Reinitialize generator 6 Reinitialize generator 9 Reinitialize generator 3 I r4_uni_01 ( 6 ) r4_uni_01 ( 9 ) r4_uni_01 ( 3 ) 1 0.580718 0.178429 0.545589 2 0.77121 0.558254 0.607802 3 0.31139 0.102241 0.26652 4 0.995434 0.395244 0.0562018 5 0.511026 0.83224 0.881036 6 0.450787 0.459968 0.767427 7 0.320508 0.0270091 0.405501 8 0.106053 0.0279301 0.37931 9 0.655542 0.00773636 0.520144 10 0.289157 0.586721 0.358031 rnglib_test04: Normal end of execution. rnglib_test: Normal end of execution. Tue Oct 19 17:09:00 2021