Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 62
Default Mersenne Twister

I posted this in the general section, but have had no
response, so I'm trying here again - sorry if this double-
dipping is bad form or causes a problem.

Does anyone have a VBA implementation of the Mersenne
Twister pseudo random number generator. I've seen several
C versions and even a Fortran version. My C is pretty
weak and it's been a while since I did anything in
Fortran, but between the two I think I can figure
out "pseudo code" that I need. But I can't find the bit
shifting functions that the generator depends on in VBA.

Tony
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Mersenne Twister

this links to the originator's page:
Home page of Makoto Matsumaoto:
http://www.math.sci.hiroshima-u.ac.j...at/eindex.html (English version)

which has links to this page which contains links to an xll implementation
which you can use:
http://www.math.sci.hiroshima-u.ac.j...CEL/excel.html

I haven't tried it, but that is what is says.

--
Regards,
Tom Ogilvy

"Tony" wrote in message
...
I posted this in the general section, but have had no
response, so I'm trying here again - sorry if this double-
dipping is bad form or causes a problem.

Does anyone have a VBA implementation of the Mersenne
Twister pseudo random number generator. I've seen several
C versions and even a Fortran version. My C is pretty
weak and it's been a while since I did anything in
Fortran, but between the two I think I can figure
out "pseudo code" that I need. But I can't find the bit
shifting functions that the generator depends on in VBA.

Tony



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
HERE'S A REAL BRAIN TWISTER: greenlion Excel Worksheet Functions 5 June 1st 06 07:54 PM
Mersenne Twister Excel Discussion (Misc queries) 0 March 11th 05 12:15 AM


All times are GMT +1. The time now is 07:19 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"