Draw samples from a uniform distribution.
Samples are uniformly distributed over the half-open interval [low, high) (includes low, but excludes high). In other words, any value within the given interval is equally likely to be drawn by uniform.
Parameters : | low : float, optional
high : float
size : int or tuple of ints, optional
|
---|---|
Returns : | out : ndarray
|
See also
Notes
The probability density function of the uniform distribution is
anywhere within the interval [a, b), and zero elsewhere.
Examples