http://hpaste.org/fastcgi/hpaste.fcgi/view?id=1989#a1990


Is the algorithm wrong ar am I using it wrong?

Also, is the second argument to shuffle supposed to eb random numbers, ie the function should be used in the IO Monad?