dpnp.random.geometric
- dpnp.random.geometric(p, size=None)[source]
Draw samples from the geometric distribution.
For full documentation refer to
numpy.random.geometric
.Limitations
Parameter p is supported as a scalar. Otherwise,
numpy.random.geometric(p, size)
samples are drawn. Output array data type isdpnp.int32
.Examples
Draw ten thousand values from the geometric distribution, with the probability of an individual success equal to 0.35:
>>> z = dpnp.random.geometric(p=0.35, size=10000)