numpy.random.triangular()
numpy.random.triangular
-
numpy.random.triangular(left, mode, right, size=None)
-
Draw samples from the triangular distribution.
The triangular distribution is a continuous probability distribution with lower limit left, peak at mode, and upper limit right. Unlike the other distributions, these parameters directly define the shape of the pdf.
Parameters: left : scalar
Lower limit.
mode : scalar
The value where the peak of the distribution occurs. The value should fulfill the condition
left <= mode <= right
.right : scalar
Upper limit, should be