<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Hi,<br>
<br>
Well first of all rtfm on Gambit's random number generation, there's a
nice API in there for it.<br>
<br>
But... I have personally had problems with it _apparently_ generating
very non-random output under Win32, but working fine under OS-X.  It
seems to loop over a fixed output sequence.  I spent a day trying to
isolate the failure conditions, but couldn't; simple test apps seem to
work fine and pass standard randomness tests ok but my app gets the
patterns.  Short of it is if I drop in another RNG - even good ol' C
rand() - I don't get any problems.  (This is Gambit 4.4.2 visual C
build btw)<br>
<br>
Haven't filed a bug report because I still don't know if it's a Gambit
bug or my bug. :(<br>
<br>
Anyway, here's a version of Mersenne Twister I hacked in in a great
hurry, it solved my problems at the time.  If anyone - esp mathematical
types - spot any glaring numerical badness, feel free to send me a fix
:-)<br>
<br>
Cheers<br>
Darren<br>
<br>
<br>
lowly coder wrote:
<blockquote
 cite="mid:858d2cda0904192330l25ca8024k1714527d55c83b21@mail.gmail.com"
 type="cite">Hi!<br>
  <br>
  I'm doing some work that involves MCMC / gibbs sampling ... and I
need lots of random numbers, fast! I would also like it to be
deterministic (after I give it a seed) so debugging / results is
replicable. The best I have in mind right now ... is to seed something,
impelment rc4, and go with that. Anyone have a better suggestion /
something alread implemented in gambit?<br>
  <br>
Thanks!<br>
  <pre wrap="">
<hr size="4" width="90%">
_______________________________________________
Gambit-list mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Gambit-list@iro.umontreal.ca">Gambit-list@iro.umontreal.ca</a>
<a class="moz-txt-link-freetext" href="https://webmail.iro.umontreal.ca/mailman/listinfo/gambit-list">https://webmail.iro.umontreal.ca/mailman/listinfo/gambit-list</a>
  </pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">-- 
Darren Baker
CEO, CTO
Wildfire Studios Pty. Ltd.

</pre>
</body>
</html>