Skip to content

Commit

Permalink
Merge pull request numpy#17245 from charris/backport-17239
Browse files Browse the repository at this point in the history
DOC: Fix the link to the quick-start in the old API functions
  • Loading branch information
charris committed Sep 4, 2020
2 parents 1dba9fb + c6bf31a commit 2898f69
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 43 deletions.
2 changes: 1 addition & 1 deletion doc/source/reference/random/legacy.rst
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ Many of the RandomState methods above are exported as functions in
- It uses a `RandomState` rather than the more modern `Generator`.

For backward compatible legacy reasons, we cannot change this. See
`random-quick-start`.
:ref:`random-quick-start`.

.. autosummary::
:toctree: generated/
Expand Down
84 changes: 42 additions & 42 deletions numpy/random/mtrand.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,7 @@ cdef class RandomState:
.. note::
New code should use the ``random`` method of a ``default_rng()``
instance instead; see `random-quick-start`.
instance instead; please see the :ref:`random-quick-start`.
Parameters
----------
Expand Down Expand Up @@ -453,7 +453,7 @@ cdef class RandomState:
.. note::
New code should use the ``beta`` method of a ``default_rng()``
instance instead; see `random-quick-start`.
instance instead; please see the :ref:`random-quick-start`.
Parameters
----------
Expand Down Expand Up @@ -503,7 +503,7 @@ cdef class RandomState:
.. note::
New code should use the ``exponential`` method of a ``default_rng()``
instance instead; see `random-quick-start`.
instance instead; please see the :ref:`random-quick-start`.
Parameters
----------
Expand Down Expand Up @@ -552,7 +552,7 @@ cdef class RandomState:
.. note::
New code should use the ``standard_exponential`` method of a ``default_rng()``
instance instead; see `random-quick-start`.
instance instead; please see the :ref:`random-quick-start`.
Parameters
----------
Expand Down Expand Up @@ -653,7 +653,7 @@ cdef class RandomState:
.. note::
New code should use the ``integers`` method of a ``default_rng()``
instance instead; see `random-quick-start`.
instance instead; please see the :ref:`random-quick-start`.
Parameters
----------
Expand Down Expand Up @@ -774,7 +774,7 @@ cdef class RandomState:
.. note::
New code should use the ``bytes`` method of a ``default_rng()``
instance instead; see `random-quick-start`.
instance instead; please see the :ref:`random-quick-start`.
Parameters
----------
Expand Down Expand Up @@ -812,7 +812,7 @@ cdef class RandomState:
.. note::
New code should use the ``choice`` method of a ``default_rng()``
instance instead; see `random-quick-start`.
instance instead; please see the :ref:`random-quick-start`.
Parameters
----------
Expand Down Expand Up @@ -1014,7 +1014,7 @@ cdef class RandomState:
.. note::
New code should use the ``uniform`` method of a ``default_rng()``
instance instead; see `random-quick-start`.
instance instead; please see the :ref:`random-quick-start`.
Parameters
----------
Expand Down Expand Up @@ -1182,7 +1182,7 @@ cdef class RandomState:
.. note::
New code should use the ``standard_normal`` method of a ``default_rng()``
instance instead; see `random-quick-start`.
instance instead; please see the :ref:`random-quick-start`.
If positive int_like arguments are provided, `randn` generates an array
of shape ``(d0, d1, ..., dn)``, filled
Expand Down Expand Up @@ -1336,7 +1336,7 @@ cdef class RandomState:
.. note::
New code should use the ``standard_normal`` method of a ``default_rng()``
instance instead; see `random-quick-start`.
instance instead; please see the :ref:`random-quick-start`.
Parameters
----------
Expand Down Expand Up @@ -1411,7 +1411,7 @@ cdef class RandomState:
.. note::
New code should use the ``normal`` method of a ``default_rng()``
instance instead; see `random-quick-start`.
instance instead; please see the :ref:`random-quick-start`.
Parameters
----------
Expand Down Expand Up @@ -1511,7 +1511,7 @@ cdef class RandomState:
.. note::
New code should use the ``standard_gamma`` method of a ``default_rng()``
instance instead; see `random-quick-start`.
instance instead; please see the :ref:`random-quick-start`.
Parameters
----------
Expand Down Expand Up @@ -1592,7 +1592,7 @@ cdef class RandomState:
.. note::
New code should use the ``gamma`` method of a ``default_rng()``
instance instead; see `random-quick-start`.
instance instead; please see the :ref:`random-quick-start`.
Parameters
----------
Expand Down Expand Up @@ -1681,7 +1681,7 @@ cdef class RandomState:
.. note::
New code should use the ``f`` method of a ``default_rng()``
instance instead; see `random-quick-start`.
instance instead; please see the :ref:`random-quick-start`.
Parameters
----------
Expand Down Expand Up @@ -1769,7 +1769,7 @@ cdef class RandomState:
.. note::
New code should use the ``noncentral_f`` method of a ``default_rng()``
instance instead; see `random-quick-start`.
instance instead; please see the :ref:`random-quick-start`.
Parameters
----------
Expand Down Expand Up @@ -1854,7 +1854,7 @@ cdef class RandomState:
.. note::
New code should use the ``chisquare`` method of a ``default_rng()``
instance instead; see `random-quick-start`.
instance instead; please see the :ref:`random-quick-start`.
Parameters
----------
Expand Down Expand Up @@ -1927,7 +1927,7 @@ cdef class RandomState:
.. note::
New code should use the ``noncentral_chisquare`` method of a ``default_rng()``
instance instead; see `random-quick-start`.
instance instead; please see the :ref:`random-quick-start`.
Parameters
----------
Expand Down Expand Up @@ -2013,7 +2013,7 @@ cdef class RandomState:
.. note::
New code should use the ``standard_cauchy`` method of a ``default_rng()``
instance instead; see `random-quick-start`.
instance instead; please see the :ref:`random-quick-start`.
Parameters
----------
Expand Down Expand Up @@ -2089,7 +2089,7 @@ cdef class RandomState:
.. note::
New code should use the ``standard_t`` method of a ``default_rng()``
instance instead; see `random-quick-start`.
instance instead; please see the :ref:`random-quick-start`.
Parameters
----------
Expand Down Expand Up @@ -2194,7 +2194,7 @@ cdef class RandomState:
.. note::
New code should use the ``vonmises`` method of a ``default_rng()``
instance instead; see `random-quick-start`.
instance instead; please see the :ref:`random-quick-start`.
Parameters
----------
Expand Down Expand Up @@ -2292,7 +2292,7 @@ cdef class RandomState:
.. note::
New code should use the ``pareto`` method of a ``default_rng()``
instance instead; see `random-quick-start`.
instance instead; please see the :ref:`random-quick-start`.
Parameters
----------
Expand Down Expand Up @@ -2386,7 +2386,7 @@ cdef class RandomState:
.. note::
New code should use the ``weibull`` method of a ``default_rng()``
instance instead; see `random-quick-start`.
instance instead; please see the :ref:`random-quick-start`.
Parameters
----------
Expand Down Expand Up @@ -2482,7 +2482,7 @@ cdef class RandomState:
.. note::
New code should use the ``power`` method of a ``default_rng()``
instance instead; see `random-quick-start`.
instance instead; please see the :ref:`random-quick-start`.
Parameters
----------
Expand Down Expand Up @@ -2593,7 +2593,7 @@ cdef class RandomState:
.. note::
New code should use the ``laplace`` method of a ``default_rng()``
instance instead; see `random-quick-start`.
instance instead; please see the :ref:`random-quick-start`.
Parameters
----------
Expand Down Expand Up @@ -2684,7 +2684,7 @@ cdef class RandomState:
.. note::
New code should use the ``gumbel`` method of a ``default_rng()``
instance instead; see `random-quick-start`.
instance instead; please see the :ref:`random-quick-start`.
Parameters
----------
Expand Down Expand Up @@ -2806,7 +2806,7 @@ cdef class RandomState:
.. note::
New code should use the ``logistic`` method of a ``default_rng()``
instance instead; see `random-quick-start`.
instance instead; please see the :ref:`random-quick-start`.
Parameters
----------
Expand Down Expand Up @@ -2893,7 +2893,7 @@ cdef class RandomState:
.. note::
New code should use the ``lognormal`` method of a ``default_rng()``
instance instead; see `random-quick-start`.
instance instead; please see the :ref:`random-quick-start`.
Parameters
----------
Expand Down Expand Up @@ -3006,7 +3006,7 @@ cdef class RandomState:
.. note::
New code should use the ``rayleigh`` method of a ``default_rng()``
instance instead; see `random-quick-start`.
instance instead; please see the :ref:`random-quick-start`.
Parameters
----------
Expand Down Expand Up @@ -3088,7 +3088,7 @@ cdef class RandomState:
.. note::
New code should use the ``wald`` method of a ``default_rng()``
instance instead; see `random-quick-start`.
instance instead; please see the :ref:`random-quick-start`.
Parameters
----------
Expand Down Expand Up @@ -3161,7 +3161,7 @@ cdef class RandomState:
.. note::
New code should use the ``triangular`` method of a ``default_rng()``
instance instead; see `random-quick-start`.
instance instead; please see the :ref:`random-quick-start`.
Parameters
----------
Expand Down Expand Up @@ -3268,7 +3268,7 @@ cdef class RandomState:
.. note::
New code should use the ``binomial`` method of a ``default_rng()``
instance instead; see `random-quick-start`.
instance instead; please see the :ref:`random-quick-start`.
Parameters
----------
Expand Down Expand Up @@ -3418,7 +3418,7 @@ cdef class RandomState:
.. note::
New code should use the ``negative_binomial`` method of a ``default_rng()``
instance instead; see `random-quick-start`.
instance instead; please see the :ref:`random-quick-start`.
Parameters
----------
Expand Down Expand Up @@ -3503,7 +3503,7 @@ cdef class RandomState:
.. note::
New code should use the ``poisson`` method of a ``default_rng()``
instance instead; see `random-quick-start`.
instance instead; please see the :ref:`random-quick-start`.
Parameters
----------
Expand Down Expand Up @@ -3589,7 +3589,7 @@ cdef class RandomState:
.. note::
New code should use the ``zipf`` method of a ``default_rng()``
instance instead; see `random-quick-start`.
instance instead; please see the :ref:`random-quick-start`.
Parameters
----------
Expand Down Expand Up @@ -3679,7 +3679,7 @@ cdef class RandomState:
.. note::
New code should use the ``geometric`` method of a ``default_rng()``
instance instead; see `random-quick-start`.
instance instead; please see the :ref:`random-quick-start`.
Parameters
----------
Expand Down Expand Up @@ -3733,7 +3733,7 @@ cdef class RandomState:
.. note::
New code should use the ``hypergeometric`` method of a ``default_rng()``
instance instead; see `random-quick-start`.
instance instead; please see the :ref:`random-quick-start`.
Parameters
----------
Expand Down Expand Up @@ -3864,7 +3864,7 @@ cdef class RandomState:
.. note::
New code should use the ``logseries`` method of a ``default_rng()``
instance instead; see `random-quick-start`.
instance instead; please see the :ref:`random-quick-start`.
Parameters
----------
Expand Down Expand Up @@ -3957,7 +3957,7 @@ cdef class RandomState:
.. note::
New code should use the ``multivariate_normal`` method of a ``default_rng()``
instance instead; see `random-quick-start`.
instance instead; please see the :ref:`random-quick-start`.
Parameters
----------
Expand Down Expand Up @@ -4131,7 +4131,7 @@ cdef class RandomState:
.. note::
New code should use the ``multinomial`` method of a ``default_rng()``
instance instead; see `random-quick-start`.
instance instead; please see the :ref:`random-quick-start`.
Parameters
----------
Expand Down Expand Up @@ -4249,7 +4249,7 @@ cdef class RandomState:
.. note::
New code should use the ``dirichlet`` method of a ``default_rng()``
instance instead; see `random-quick-start`.
instance instead; please see the :ref:`random-quick-start`.
Parameters
----------
Expand Down Expand Up @@ -4395,7 +4395,7 @@ cdef class RandomState:
.. note::
New code should use the ``shuffle`` method of a ``default_rng()``
instance instead; see `random-quick-start`.
instance instead; please see the :ref:`random-quick-start`.
Parameters
----------
Expand Down Expand Up @@ -4490,7 +4490,7 @@ cdef class RandomState:
.. note::
New code should use the ``permutation`` method of a ``default_rng()``
instance instead; see `random-quick-start`.
instance instead; please see the :ref:`random-quick-start`.
Parameters
----------
Expand Down

0 comments on commit 2898f69

Please sign in to comment.