From: Chris Lowis Date: 2009-01-22T20:59:11+09:00 Subject: Re: Separate random number generators? Bart Braem wrote: > On Jan 22, 12:13�pm, Lars Christensen wrote: >> >> http://www.splatbang.com/rubyquiz/quiz.rhtml?id=173_Not_So_Random > > I indeed mean separate deterministic PRNGs with fixed seeds for > reproducible sequences. Interesting to see this was a Ruby Quiz! Are > there solutions without the use of DRb and other libraries? > > Thanks for your fast reply! I know this doesn't meet your criteria of independence from other libraries, but the GSL (GNU Scientific Library) has a number (of different algorithms for seeded random number generation. It's fairly easy to call these functions from Ruby using the rb-gsl (http://rb-gsl.rubyforge.org/) bindings. Here's some examples: http://rb-gsl.rubyforge.org/rng.html I've also written a bit about that in the past on my blog (http://blog.chrislowis.co.uk). Hope this helps, Chris -- Posted via http://www.ruby-forum.com/.