diff options
author | Charles Harris <charlesr.harris@gmail.com> | 2019-07-13 10:54:07 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-07-13 10:54:07 -0500 |
commit | bebc3a658b9c21b12c76b3fcb0a578434ec7267a (patch) | |
tree | bf57a1c0b69dec889572cf5851849f690ec080a5 /numpy | |
parent | 4f7d5eb13394ec2b13fe9e22855fa009579cb49b (diff) | |
parent | d8e145743813545b11be1f588f4fedb88addf059 (diff) | |
download | numpy-bebc3a658b9c21b12c76b3fcb0a578434ec7267a.tar.gz |
Merge pull request #13945 from mattip/random-diff
DOC, MAINT: emphasize random API changes, remove Generator.randint
Diffstat (limited to 'numpy')
-rw-r--r-- | numpy/random/generator.pyx | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/numpy/random/generator.pyx b/numpy/random/generator.pyx index 6adf0f00b..bf53248ae 100644 --- a/numpy/random/generator.pyx +++ b/numpy/random/generator.pyx @@ -353,7 +353,8 @@ cdef class Generator: Return random integers from `low` (inclusive) to `high` (exclusive), or if endpoint=True, `low` (inclusive) to `high` (inclusive). Replaces - randint (with endpoint=False) and random_integers (with endpoint=True) + `RandomState.randint` (with endpoint=False) and + `RandomState.random_integers` (with endpoint=True) Return random integers from the "discrete uniform" distribution of the specified dtype. If `high` is None (the default), then results are @@ -503,13 +504,6 @@ cdef class Generator: return self.integers(0, 4294967296, size=n_uint32, dtype=np.uint32).astype('<u4').tobytes()[:length] - def randint(self, low, high=None, size=None, dtype=np.int64, endpoint=False): - """ - Deprecated, renamed to ``integers`` - """ - warnings.warn("Renamed to integers", RuntimeWarning) - self.integers(low, high, size, dtype, endpoint) - @cython.wraparound(True) def choice(self, a, size=None, replace=True, p=None, axis=0): """ |