dpnp.random.triangular
- dpnp.random.triangular(left, mode, right, size=None)[source]
Draw samples from the triangular distribution over the interval [left, right].
For full documentation refer to
numpy.random.triangular
.Limitations
Parameters left, mode and right are supported as scalar. Otherwise,
numpy.random.triangular(left, mode, right, size)
samples are drawn. Output array data type isdpnp.float64
.Examples
Draw samples from the distribution:
>>> df = 2. >>> s = dpnp.random.triangular(-3, 0, 8, 1000000)