News:

Masm32 SDK description, downloads and other helpful links
Message to All Guests
NB: Posting URL's See here: Posted URL Change

Main Menu

Mersenne Twister: a 623-dimensionally equidistributed uniform pseudorandom...

Started by HSE, October 22, 2024, 06:42:38 AM

Previous topic - Next topic

HSE

Hi all!

A lot of interest into RNG this days  :thumbsup:

Here a translation from C to Assembly, using Masm64 SDK.

This use Randy Hyde loops macros (in SmplMath) just to make a more nice code :biggrin:

(I presume everybody changed vc__i64toa to vc__ui64toa en str$ macro.)

Regards, HSE.
Equations in Assembly: SmplMath

zedd151

Windows 10 'convert' now, but windows xp was the best!   :skrewy:

NoCforMe

Assembly language programming should be fun. That's why I do it.

HSE

Quote from: NoCforMe on October 22, 2024, 10:43:20 AMAny chance of porting that to 32-bit code for us Luddites here?

That could be a lot of work, you can do it  :biggrin:

I think there are several mersenne 32 bits algorithms in the forum. I mostly used RNG.inc, wich was in ObjAsm32 examples.

Note: Twister show why 64 bits is more powerful than 32 bits. And can be faster,just code become a little hard to follow  :biggrin:  :biggrin:
Equations in Assembly: SmplMath