shuffling elements of a list

Zhang Fan yalexfan at gmail.com
Tue May 30 23:26:38 EDT 2006


On 30 May 2006 20:18:19 -0700, greenflame <alikakakhel at yahoo.com> wrote:
> Second of all, I would like to have
> other methods of shuffling, prefererably riffle shuffling and just
> plain randomly arranging the elements of the list.

The random module has a `shuffle' method.  It  "Shuffle the sequence x
in place".
It may be help for you



More information about the Python-list mailing list