[Haskell-beginners] randomize the order of a list

Felipe Lessa felipe.lessa at gmail.com
Fri Aug 27 16:16:55 EDT 2010


On Fri, Aug 27, 2010 at 5:02 PM, Gaius Hammond <gaius at gaius.org.uk> wrote:
> I am trying to randomly reorder a list (e.g. shuffle a deck of cards) .

Note: you could use random-shuffle package [1].

[1] http://hackage.haskell.org/package/random-shuffle

Cheers!

-- 
Felipe.


More information about the Beginners mailing list