44
55Legacy Random Generation
66------------------------
7- The `~mtrand. RandomState ` provides access to
7+ The `RandomState ` provides access to
88legacy generators. This generator is considered frozen and will have
99no further improvements. It is guaranteed to produce the same values
1010as the final point release of NumPy v1.16. These all depend on Box-Muller
1111normals or inverse CDF exponentials or gammas. This class should only be used
1212if it is essential to have randoms that are identical to what
1313would have been produced by previous versions of NumPy.
1414
15- `~mtrand. RandomState ` adds additional information
15+ `RandomState ` adds additional information
1616to the state which is required when using Box-Muller normals since these
1717are produced in pairs. It is important to use
18- `~mtrand. RandomState.get_state `, and not the underlying bit generators
18+ `RandomState.get_state `, and not the underlying bit generators
1919`state `, when accessing the state so that these extra values are saved.
2020
21- Although we provide the `~mt19937. MT19937 ` BitGenerator for use independent of
22- `~mtrand. RandomState `, note that its default seeding uses `~ SeedSequence `
23- rather than the legacy seeding algorithm. `~mtrand. RandomState ` will use the
21+ Although we provide the `MT19937 ` BitGenerator for use independent of
22+ `RandomState `, note that its default seeding uses `SeedSequence `
23+ rather than the legacy seeding algorithm. `RandomState ` will use the
2424legacy seeding algorithm. The methods to use the legacy seeding algorithm are
2525currently private as the main reason to use them is just to implement
26- `~mtrand. RandomState `. However, one can reset the state of `~mt19937. MT19937 `
27- using the state of the `~mtrand. RandomState `:
26+ `RandomState `. However, one can reset the state of `MT19937 `
27+ using the state of the `RandomState `:
2828
2929.. code-block :: python
3030
@@ -47,8 +47,6 @@ using the state of the `~mtrand.RandomState`:
4747 rs2.standard_exponential()
4848
4949
50- .. currentmodule :: numpy.random.mtrand
51-
5250 .. autoclass :: RandomState
5351 :exclude-members:
5452
0 commit comments