Fix random docstring
@@ -308,8 +308,8 @@ class Generator:
p (float or cupy.ndarray of floats): Success probability of
the geometric distribution.
size (int or tuple of ints, optional): The shape of the output
- array. If `None`(default), a single value is returned if ``p``
- is scalar. Otherwise, ``p.size`` samples are drawn.
+ array. If ``None`` (default), a single value is returned if
+ ``p`` is scalar. Otherwise, ``p.size`` samples are drawn.
Returns:
cupy.ndarray: Samples drawn from the geometric distribution.
@@ -443,8 +443,8 @@ class Generator:
a zero-dimensional array is generated.
dtype: Data type specifier. Only :class:`numpy.float32` and
:class:`numpy.float64` types are allowed.
- method (str): Method to sample, Currently onlu 'inv', sample from
- the default inverse CDF is supported.
+ method (str): Method to sample. Currently only ``'inv'``, sampling
+ from the default inverse CDF, is supported.
out (cupy.ndarray, optional): If specified, values will be written
to this array
Returns:
@@ -486,7 +486,7 @@ class Generator:
the poisson distribution
:math:`\\lambda`.
size (int or tuple of ints): The shape of the array. If ``None``,
- this function generate an array whose shape is `lam.shape`.
+ this function generate an array whose shape is ``lam.shape``.
Returns:
cupy.ndarray: Samples drawn from the poisson distribution.
