[Numpy-discussion] argument handling by uniform

Alan G Isaac alan.isaac at gmail.com
Fri Mar 13 13:17:39 EDT 2015


On 3/13/2015 12:01 PM, Robert Kern wrote:
> Roughly equivalent to:
>
> uni = np.array([
>    np.random.uniform(-0.5, 201),
>    np.random.uniform(0.5, 201),
> ])



OK, broadcasting of `low` and `high` is reasonably fun.
But is it documented?
I was looking at the docstring, which matches the online help:
http://docs.scipy.org/doc/numpy/reference/generated/numpy.random.uniform.html#numpy.random.uniform

Thanks,
Alan Isaac



More information about the NumPy-Discussion mailing list