[Numpy-discussion] making "low" optional in numpy.randint

Juan Nunez-Iglesias jni.soma at gmail.com
Wed Feb 17 19:01:46 EST 2016


Notice the limitation "1D array-like".

On Thu, Feb 18, 2016 at 10:59 AM, Alan Isaac <alan.isaac at gmail.com> wrote:

> On 2/17/2016 6:48 PM, Juan Nunez-Iglesias wrote:
>
>> Also fwiw, I think the 0-based, half-open interval is one of the best
>> features of Python indexing and yes, I do use random integers to index
>> into my arrays and would not appreciate having to litter my code with
>> "-1" everywhere.
>>
>
>
> http://docs.scipy.org/doc/numpy-1.10.0/reference/generated
> /numpy.random.choice.html
>
> fwiw,
> Alan Isaac
>
> _______________________________________________
> NumPy-Discussion mailing list
> NumPy-Discussion at scipy.org
> https://mail.scipy.org/mailman/listinfo/numpy-discussion
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20160218/eb4e8144/attachment.html>


More information about the NumPy-Discussion mailing list