Re: Generating normally distributed randoms in CL



On Jul 30, 12:01 pm, Madhu <enom...@xxxxxxxx> wrote:
* Tamas K Papp <6faot4Fagfg...@xxxxxxxxxxxxxxxxxx> :
Wrote on 30 Jul 2008 09:00:20 GMT:

For serious simulations you want to publish repeatable results,
_independent_ of the Common Lisp implementation you use---In that case
your simulation program cannot depend on a package which calls CL:RANDOM
[as different implementations will produce different sequences of
numbers].  It is preferable to use FFI to a "Standard" C implementation,
like the "RANLIB.C" package from NETLIB,

--
Madhu

In SBCL the random function uses the well known algorithm of Mersenne
Twister.

http://sbcl-internals.cliki.net/RANDOM-MT19937
.


Quantcast