I tried to implement perfect functional shuffle in Clojure as outlined in http://okmij.org/ftp/Haskell/perfect-shuffle.txt
This is purely for educational purposes as I am learning Clojure (so please don't be too hard on me if I did something silly) The code: https://github.com/pebrc/ninety-nine-clojure/blob/master/src/ninety_nine_clojure/lists.clj#L267 A related blog post: http://pbrc.blogspot.com/2014/03/99-clojure-problems-25-generate-random.html I would be very happy about any feedback/review. If you have a look at the blog post you will find a histogram that seems to indicate that my perfect functional shuffle is not quite perfect because it is not a uniform distribution. That is almost certainly a mistake on my part, again, I would be very grateful for any hints. Cheers, Peter -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en --- You received this message because you are subscribed to the Google Groups "Clojure" group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.