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

Emanuele Zattin emanuelez@gmail....
Sat Aug 4 05:20:53 CDT 2007


mmm... what about something like:

random.shuffle(A.ravel())



On 8/4/07, fred <fredmfp@gmail.com> wrote:
> Hi,
>
> Say I have an array with 250 000 values.
>
> I want to choose at random _all_ the elements of this array,
> _once and only once_.
>
> How can I do this ?
>
> TIA.
>
> Cheers,
>
> --
> http://scipy.org/FredericPetit
>
> _______________________________________________
> SciPy-user mailing list
> SciPy-user@scipy.org
> http://projects.scipy.org/mailman/listinfo/scipy-user
>


-- 
Emanuele Zattin
---------------------------------------------------
-I don't have to know an answer. I don't feel frightened by not
knowing things; by being lost in a mysterious universe without any
purpose — which is the way it really is, as far as I can tell,
possibly. It doesn't frighten me.- Richard Feynman


More information about the SciPy-user mailing list