From: Robert Klemme Date: 2008-06-25T18:41:50+09:00 Subject: Re: Is this deterministic or not? 2008/6/2 Dave Bass : > Tim Hunter wrote: >> P.S. I'm sure there's a lot of good things to be said about PRNGs and >> stuff but I'll let somebody else type it in. > > I'll just add that Ruby's rand is deterministic, but it uses a very good > PRNG algorithm (Mersenne twister). Unless you really need true > randomness, it's good enough to use out-of-the-box. Plus, opposed to other libs and languages, there is a random element in seeding: http://www.ruby-doc.org/core/classes/Kernel.html#M001086 Kind regards robert -- use.inject do |as, often| as.you_can - without end