summaryrefslogtreecommitdiff
path: root/doc/source/reference/random
diff options
context:
space:
mode:
authorMatti Picus <matti.picus@gmail.com>2019-11-14 05:40:34 -0700
committerGitHub <noreply@github.com>2019-11-14 05:40:34 -0700
commitd1d9dd58e2de5f3b69c02b104e1daaeec1f38d9f (patch)
treeee22f87b400326a4f0fff79e185036783b4c8b80 /doc/source/reference/random
parentfae5473ee1569011cf56eda9d6f3a5067258b3ec (diff)
parent6dfe3318400972f414b02e3e12c83c52372f1e00 (diff)
downloadnumpy-d1d9dd58e2de5f3b69c02b104e1daaeec1f38d9f.tar.gz
Merge pull request #14901 from eric-wieser/remove-uses-of-scalar-aliases
MAINT: Remove uses of scalar aliases
Diffstat (limited to 'doc/source/reference/random')
-rw-r--r--doc/source/reference/random/index.rst2
-rw-r--r--doc/source/reference/random/multithreading.rst2
2 files changed, 2 insertions, 2 deletions
diff --git a/doc/source/reference/random/index.rst b/doc/source/reference/random/index.rst
index 9b19620d8..15c161244 100644
--- a/doc/source/reference/random/index.rst
+++ b/doc/source/reference/random/index.rst
@@ -57,7 +57,7 @@ cleanup means that legacy and compatibility methods have been removed from
``randint``, ``integers`` Add an ``endpoint`` kwarg
``random_integers``
------------------- -------------- ------------
-``tomaxint`` removed Use ``integers(0, np.iinfo(np.int).max,``
+``tomaxint`` removed Use ``integers(0, np.iinfo(np.int_).max,``
``endpoint=False)``
------------------- -------------- ------------
``seed`` removed Use `~.SeedSequence.spawn`
diff --git a/doc/source/reference/random/multithreading.rst b/doc/source/reference/random/multithreading.rst
index 6883d3672..a0a31d0ea 100644
--- a/doc/source/reference/random/multithreading.rst
+++ b/doc/source/reference/random/multithreading.rst
@@ -41,7 +41,7 @@ seed will produce the same outputs.
self.n = n
self.executor = concurrent.futures.ThreadPoolExecutor(threads)
self.values = np.empty(n)
- self.step = np.ceil(n / threads).astype(np.int)
+ self.step = np.ceil(n / threads).astype(np.int_)
def fill(self):
def _fill(random_state, out, first, last):