You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+9-21Lines changed: 9 additions & 21 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -116,7 +116,7 @@ Notice: a comparison of the computation times for all implemented PRNGs in **Cpp
116
116
<td>Cwg64</td>
117
117
<td>*CWG64*</td>
118
118
<td>8 x 4-bytes</td>
119
-
<td>>= 2^70</td>
119
+
<td>>= 2^64</td>
120
120
<td>0</td>
121
121
<td>0</td>
122
122
<td>0</td>
@@ -127,7 +127,7 @@ Notice: a comparison of the computation times for all implemented PRNGs in **Cpp
127
127
<td>Cwg128_64</td>
128
128
<td>*CWG128-64*</td>
129
129
<td>10 x 4-bytes</td>
130
-
<td>>= 2^71</td>
130
+
<td>>= 2^64</td>
131
131
<td>0</td>
132
132
<td>0</td>
133
133
<td>0</td>
@@ -138,7 +138,7 @@ Notice: a comparison of the computation times for all implemented PRNGs in **Cpp
138
138
<td>Cwg128</td>
139
139
<td>*CWG128*</td>
140
140
<td>16 x 4-bytes</td>
141
-
<td>>= 2^135</td>
141
+
<td>>= 2^128</td>
142
142
<td>0</td>
143
143
<td>0</td>
144
144
<td>0</td>
@@ -845,9 +845,9 @@ Since version **2.0** of **CppRandLib** also, the newly implemented method `getr
845
845
846
846
847
847
---
848
-
### Cwg64 -- minimum 2^70 period
848
+
### Cwg64 -- minimum 2^64 period
849
849
850
-
**Cwg64** implements the full 64 bits version of the Collatz-Weyl Generator algorithm: computations are done on 64-bits, the output generated value is coded on 64-bits also. It provides a medium period which is at minimum 2^70 (i.e. about 1.18e+21), short computation time and a four 64-bits integers internal state (x, a, weyl, s).
850
+
**Cwg64** implements the full 64 bits version of the Collatz-Weyl Generator algorithm: computations are done on 64-bits, the output generated value is coded on 64-bits also. It provides a medium period which is at minimum 2^64 (i.e. about 1.84e+19), short computation time and a four 64-bits integers internal state (x, a, weyl, s).
851
851
852
852
This version of the CGW algorithm evaluates pseudo-random suites *output(i)* as the combination of the next instructions applied to *state(i-1)*:
853
853
@@ -858,21 +858,9 @@ This version of the CGW algorithm evaluates pseudo-random suites *output(i)* as
858
858
859
859
860
860
861
-
### Cwg64 -- minimum 2^70 period
861
+
### Cwg128_64 -- minimum 2^64 period
862
862
863
-
**Cwg64** implements the full 64 bits version of the Collatz-Weyl Generator algorithm: computations are done on 64-bits. The output generated value is coded on 64-bits also. It provides a medium period which is at minimum 2^70 (i.e. about 1.18e+21), short computation time and a four 64-bits integers internal state (x, a, weyl, s).
864
-
865
-
This version of the CGW algorithm evaluates pseudo-random suites *output(i)* as the combination of the next instructions applied to *state(i-1)*:
866
-
867
-
a(i) = a(i-1) + x(i-1)
868
-
weyl(i) = weyl(i-1) + s // s is constant over time and must be odd, this is the value to modify to get multi-streams
**Cwg128_64** implements the mixed 128/64 bits version of the Collatz-Weyl Generator algorithm: computations are done on 128- and 64- bits. The output generated value is coded on 64-bits also. It provides a medium period which is at minimum 2^71 (i.e. about 2.36e+21), short computation time and a three 64-bits (a, weyl, s) plus one 128-bits integer internal state (x).
863
+
**Cwg128_64** implements the mixed 128/64 bits version of the Collatz-Weyl Generator algorithm: computations are done on 128- and 64- bits. The output generated value is coded on 64-bits also. It provides a medium period which is at minimum 2^64 (i.e. about 1.84e+19), short computation time and a three 64-bits (a, weyl, s) plus one 128-bits integer internal state (x).
876
864
877
865
This version of the CGW algorithm evaluates pseudo-random suites *output(i)* as the combination of the next instructions applied to *state(i-1)*:
878
866
@@ -883,9 +871,9 @@ This version of the CGW algorithm evaluates pseudo-random suites *output(i)* as
883
871
884
872
885
873
886
-
### Cwg128 -- minimum 2^135 period
874
+
### Cwg128 -- minimum 2^128 period
887
875
888
-
**Cwg128** implements the full 128 bits version of the Collatz-Weyl Generator algorithm: computations are done on 128-bits. The output generated value is coded on 128-bits also. It provides a medium period which is at minimum 2^135 (i.e. about 4.36e+40), short computation time and a four 128-bits integers internal state (x, a, weyl, s).
876
+
**Cwg128** implements the full 128 bits version of the Collatz-Weyl Generator algorithm: computations are done on 128-bits. The output generated value is coded on 128-bits also. It provides a medium period which is at minimum 2^128 (i.e. about 6.81e+38), short computation time and a four 128-bits integers internal state (x, a, weyl, s).
889
877
890
878
This version of the CGW algorithm evaluates pseudo-random suites *output(i)* as the combination of the next instructions applied to *state(i-1)*:
0 commit comments