[Numpy-discussion] selecting random array element

Chris Fonnesbeck fonnesbeck at gmail.com
Mon Feb 20 11:28:06 EST 2006


What is the best way to select a random element from a numpy array? I
know I could index by a random integer, but was wondering if there was
a built-in method or function.

Thanks,
C.

--
Chris Fonnesbeck + Atlanta, GA + http://trichech.us




More information about the NumPy-Discussion mailing list