diff options
| author | Bharat123rox <bharatraghunthan9767@gmail.com> | 2021-04-18 12:10:07 +0530 |
|---|---|---|
| committer | Bharat123rox <bharatraghunthan9767@gmail.com> | 2021-04-18 12:10:07 +0530 |
| commit | 2232a473f8713f532c8164c8cf616f7bd05f54a7 (patch) | |
| tree | ad45f3009d850f122f3d04388611730d650abfb5 /numpy/random/_generator.pyx | |
| parent | cffb693566360e33c76ef6d9981ced15dbebacff (diff) | |
| download | numpy-2232a473f8713f532c8164c8cf616f7bd05f54a7.tar.gz | |
DOC: Improve random.choice() documentation
Diffstat (limited to 'numpy/random/_generator.pyx')
| -rw-r--r-- | numpy/random/_generator.pyx | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/numpy/random/_generator.pyx b/numpy/random/_generator.pyx index a68303501..cd0b24872 100644 --- a/numpy/random/_generator.pyx +++ b/numpy/random/_generator.pyx @@ -614,11 +614,12 @@ cdef class Generator: len(size)``. Default is None, in which case a single value is returned. replace : bool, optional - Whether the sample is with or without replacement + Whether the sample is with or without replacement. Default is True, + meaning that a value of ``a`` can be selected multiple times. p : 1-D array_like, optional The probabilities associated with each entry in a. - If not given the sample assumes a uniform distribution over all - entries in a. + If not given, the sample assumes a uniform distribution over all + entries in ``a``. axis : int, optional The axis along which the selection is performed. The default, 0, selects by row. |
