On Friday, October 31, 2014 11:19:19 PM UTC-5, Isaac Karth wrote: > > Looks like if I want to use libraries like clojure.data.generators or > bigml.sampling I'd need to amend the random generators to replace calls to > the Mersenne Twister function or (def ^:dynamic *rnd* (java.util.Random. > 42)). As long >
Further clarification: I believe that java.util.Random doesn't use a Mersenne Twister, so clojure.data.generators doesn't by default, either. However, Sean Luke's MersenneTwister.java subclasses java.util.Random, so you should be able to use it as the RNG behind clojure.data.generators, if that seemed like a good idea in other respects. (Luke's other implementation, MersenneTwisterFast.java, does not subclass java.util.Random. I'm not certain whether it can be used it with data.generators. At one time I knew, but I would have to review past investigations to know now.) And, while I'm at it, it's worth mentioning that the Incanter statistical library for Clojure also has some random number generating functions. Some of these are based on java.util.Random. Don't know if they'd be worth looking at for your purposes. (I don't know anything about PRF's so no comments from me about that path.) -- 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.