RFC - Mersenne Twister (SFMT)

Jason House jason.james.house at gmail.com
Sat Nov 17 13:23:23 PST 2007


Tyro[a.c.edwards] wrote:

> After reading Julienne Walker's article
> (http://www.eternallyconfuzzled.com/arts/jsw_art_rand.aspx) on rand() I
> wondered why the very best psudo-random generator available is not the
> standard. I looked at the std.random and was not happy to find out that it
> is slower than I rand() so I attempted to convert Mersenne Twister
> (again). I'm hoping to get some feedback on how to improve upon the
> attempt. The actual library
> (http://www.math.sci.hiroshima-u.ac.jp/~m-mat/MT/SFMT/index.html) comes
> with code for both 64-bit OSes and more.
> 
> D version: D v2.007
> OS: Windows XP - sp2
> 
> Thanks,
> Andrew

I also have a Mersenne Twister implementation available at:
http://housebot.svn.sourceforge.net/viewvc/housebot/trunk/housebot/random.d?view=log


More information about the Digitalmars-d-learn mailing list