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

Alan Isaac alan.isaac at gmail.com
Wed Feb 17 18:59:15 EST 2016


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



More information about the NumPy-Discussion mailing list