@@ -94,12 +94,14 @@ integers as well as a two 32-bit integers representing the location in the
94
94
state array of the current and lagged values.
95
95
96
96
**State and Seeding**
97
- The ``dsfmt.mlfg_1279_861`` state vector consists of a 1279 element array of
98
- 64-bit unsigned integers plus a two integers value between 0 and 1278
99
- indicating the current position and the lagged value within the main array
100
- required to produce the next random.
101
97
102
- ``dsfmt.mlfg_1279_861`` is seeded using either a single 64-bit unsigned integer
98
+ The ``mlfg_1279_861.RandomState`` state vector consists of a 1279 element array
99
+ of 64-bit unsigned integers plus a two integers value between 0 and 1278
100
+ indicating the current position and the position of the lagged value within
101
+ the main array required to produce the next random. All elements of the 1279
102
+ element state array must be odd.
103
+
104
+ ``mlfg_1279_861.RandomState`` is seeded using either a single 64-bit unsigned integer
103
105
or a vector of 64-bit unsigned integers. In either case the input seed is
104
106
used as an input (or inputs) for another simple random number generator,
105
107
Splitmix64, and the output of this PRNG function is used as the initial state.
@@ -108,5 +110,5 @@ the possible initial state values. When using an array, the SplitMix64 state
108
110
for producing the ith component of the initial state is XORd with the ith
109
111
value of the seed array until the seed array is exhausted. When using an array
110
112
the initial state for the SplitMix64 state is 0 so that using a single element
111
- array and using a single scalar value will produce the same initial state.
113
+ array and using the same value as a scalar will produce the same initial state.
112
114
"""
0 commit comments