Skip to content

Commit

Permalink
Makes more clean the docstring of some random generators
Browse files Browse the repository at this point in the history
  • Loading branch information
ffranchina committed Sep 9, 2022
1 parent 397b6e5 commit 3c6fabc
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions numpy/random/mtrand.pyx
Expand Up @@ -655,6 +655,7 @@ cdef class RandomState:

def randint(self, low, high=None, size=None, dtype=int):
"""
randint(high, size=None, dtype=int)
randint(low, high=None, size=None, dtype=int)
Return random integers from `low` (inclusive) to `high` (exclusive).
Expand Down Expand Up @@ -1023,6 +1024,7 @@ cdef class RandomState:

def uniform(self, low=0.0, high=1.0, size=None):
"""
uniform(high, size=None)
uniform(low=0.0, high=1.0, size=None)
Draw samples from a uniform distribution.
Expand Down Expand Up @@ -1259,6 +1261,7 @@ cdef class RandomState:

def random_integers(self, low, high=None, size=None):
"""
random_integers(high, size=None)
random_integers(low, high=None, size=None)
Random integers of type `np.int_` between `low` and `high`, inclusive.
Expand Down

0 comments on commit 3c6fabc

Please sign in to comment.