@@ -7,8 +7,8 @@ generator be be changed.
7
7
Quick Start
8
8
-----------
9
9
10
- Like :mod: `numpy.random `, RandomGen can be used at the module level.
11
- This uses the default :class: `~randomgen.generator.RandomGenerator ` which
10
+ Like :mod: `numpy.random `, RandomGen can be used at the module level.
11
+ This uses the default :class: `~randomgen.generator.RandomGenerator ` which
12
12
uses normals provided by :class: `~randomgen.xoroshiro128.Xoroshiro128 `.
13
13
14
14
.. code-block :: python
@@ -17,10 +17,10 @@ uses normals provided by :class:`~randomgen.xoroshiro128.Xoroshiro128`.
17
17
import randomgen.generator as random
18
18
random.standard_normal()
19
19
20
- :class: `~randomgen.generator.RandomGenerator ` can also be used as a
20
+ :class: `~randomgen.generator.RandomGenerator ` can also be used as a
21
21
replacement for :class: `~numpy.random.RandomState `, although the random
22
- values are generated by :class: `~randomgen.xoroshiro128.Xoroshiro128 `. It
23
- also isn't possible to directly seed a
22
+ values are generated by :class: `~randomgen.xoroshiro128.Xoroshiro128 `. It
23
+ also isn't possible to directly seed a
24
24
:class: `~randomgen.generator.RandomGenerator `.
25
25
26
26
@@ -33,7 +33,7 @@ also isn't possible to directly seed a
33
33
34
34
35
35
Seeds can be passed to any of the basic RNGs. Here :class: `~randomgen.mt19937.MT19937 `
36
- is used and the :class: `~randomgen.generator.RandomGenerator ` is accessed via
36
+ is used and the :class: `~randomgen.generator.RandomGenerator ` is accessed via
37
37
the property :attr: `~randomgen.mt19937.MT19937.generator `.
38
38
39
39
.. code-block :: python
@@ -93,13 +93,13 @@ What's New or Different
93
93
.. warning ::
94
94
95
95
The Box-Muller method used to produce NumPy's normals is no longer available
96
- in :class: `~randomgen.generator.RandomGenerator `. It is not possible to
97
- reproduce the random values using :class: `~randomgen.generator.RandomGenerator `
96
+ in :class: `~randomgen.generator.RandomGenerator `. It is not possible to
97
+ reproduce the random values using :class: `~randomgen.generator.RandomGenerator `
98
98
for the normal distribution or any other distribution that relies on the
99
- normal such as the gamma or student's t. If you require backward compatibility, a
99
+ normal such as the gamma or student's t. If you require backward compatibility, a
100
100
legacy generator, :class: `~randomgen.mtrand.RandomState `, has been created
101
101
which can fully reproduce the sequence produced by NumPy.
102
-
102
+
103
103
* The normal, exponential and gamma generators use 256-step Ziggurat
104
104
methods which are 2-10 times faster than NumPy's Box-Muller or inverse CDF
105
105
implementations.
0 commit comments