I wanted to ask what algorithm Java is using for calculating its random numbers (having a choice of algorithms would be great - some applications favor one above the other), but I found a website digging into exactly this question:
http://www.math.utah.edu/~beebe/java/random/README "I therefore had to resort to peeking inside the source, found on Sun Solaris 9 in /usr/j2se/src.zip, member java/util/Random.java. It uses a 48-bit linear congruential generator recommended by Donald Knuth (a good sign), but returns only a 32-bit subset of the computed bits. The default seed is the current time-of-day, returned by System.currentTimeMillis()." I'll compare it later on to the one ruby is using (Mersenne Twister Algorithm, which is excellent for monte carlo-like simulations), just to get my own bearings. --~--~---------~--~----~------------~-------~--~----~ 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 To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/clojure?hl=en -~----------~----~----~----~------~----~------~--~---