@@ -49,12 +49,12 @@ cdef object _set_state(aug_state *state, object state_info):
49
49
DEF CLASS_DOCSTRING = u """
50
50
RandomState(seed=None)
51
51
52
- Container for the xorshift1024* pseudo random number generator.
52
+ Container for the xorshift1024* pseudo- random number generator.
53
53
54
54
xorshift1024* is a 64-bit implementation of Saito and Matsumoto's XSadd
55
55
generator [1]_. xorshift1024* has a period of :math:`2^{1024} - 1` and
56
- supports jumping the sequence in increments of :math:`2^{512}`, which allow multiple
57
- non-overlapping sequences to be generated.
56
+ supports jumping the sequence in increments of :math:`2^{512}`, which allows
57
+ multiple non-overlapping sequences to be generated.
58
58
59
59
``xorshift1024.RandomState`` exposes a number of methods for generating random
60
60
numbers drawn from a variety of probability distributions. In addition to the
@@ -80,7 +80,7 @@ seed : {None, int, array_like}, optional
80
80
Can be an integer in [0, 2**64-1], array of integers in
81
81
[0, 2**64-1] or ``None`` (the default). If `seed` is ``None``,
82
82
then ``xorshift1024.RandomState`` will try to read data from
83
- ``/dev/urandom`` (or the Windows analogue ) if available. If
83
+ ``/dev/urandom`` (or the Windows analog ) if available. If
84
84
unavailable, a 64-bit hash of the time and process ID is used.
85
85
86
86
Notes
@@ -90,10 +90,10 @@ See xorshift128 for a faster implementation that has a smaller period.
90
90
**Parallel Features**
91
91
92
92
``xorshift1024.RandomState`` can be used in parallel applications by
93
- calling the method ``jump`` which advances the
94
- the state as-if :math:`2^{512}` random numbers have been generated. This
95
- allow the original sequence to be split so that distinct segments can be used
96
- on each worker process. All generators should be initialized with the same
93
+ calling the method ``jump`` which advances the state as-if
94
+ :math:`2^{512}` random numbers have been generated. This
95
+ allows the original sequence to be split so that distinct segments can be used
96
+ in each worker process. All generators should be initialized with the same
97
97
seed to ensure that the segments come from the same sequence.
98
98
99
99
>>> import randomstate.prng.xorshift1024 as rnd
@@ -108,7 +108,7 @@ The ``xorshift1024.RandomState`` state vector consists of a 16 element array
108
108
of 64-bit unsigned integers.
109
109
110
110
``xorshift1024.RandomState`` is seeded using either a single 64-bit unsigned integer
111
- or a vector of 64-bit unsigned integers. In either case the input seed is
111
+ or a vector of 64-bit unsigned integers. In either case, the input seed is
112
112
used as an input (or inputs) for another simple random number generator,
113
113
Splitmix64, and the output of this PRNG function is used as the initial state.
114
114
Using a single 64-bit value for the seed can only initialize a small range of
0 commit comments