[SciPy-user] choose at random all elements in a array...

fred fredmfp at gmail.com
Sat Aug 4 08:02:13 EDT 2007


Emanuele Zattin a écrit :
> mmm... what about something like:
>
> random.shuffle(A.ravel())
>   

Whaou, I ever did not think it could be so easy ;-))

Thanks a lot to all two.

Cheers,

-- 
http://scipy.org/FredericPetit




More information about the SciPy-User mailing list