Author Topic: Monte Carlo Simulation with RDRAND  (Read 19232 times)

Gunther

  • Member
  • *****
  • Posts: 4198
  • Forgive your enemies, but never forget their names
Re: Monte Carlo Simulation with RDRAND
« Reply #15 on: October 06, 2013, 10:09:46 AM »
Dave,

it has a slight bug, Gunther
see reply #11

the result is always set to 1

yes, the lable was wrong. It's fixed in MC1.ZIP.

Gunther
You have to know the facts before you can distort them.

qWord

  • Member
  • *****
  • Posts: 1475
  • The base type of a type is the type itself
    • SmplMath macros
Re: Monte Carlo Simulation with RDRAND
« Reply #16 on: October 07, 2013, 09:40:11 AM »
Might not be very useful, but in the attachment a cute multithreaded x64 program that plots a map from the random numbers (64bit). For interpreting the map: as darker a pixel gets, has higher the corresponding "hit" count - because the scaling is relative to the map's minimal and maximal value it will never get monochrome.
jWasm, polink and WinInc is used for building (the paths in build.bat must be adapted of course).

regards, qWord


 
« Last Edit: October 07, 2013, 12:48:53 PM by qWord »
MREAL macros - when you need floating point arithmetic while assembling!

Gunther

  • Member
  • *****
  • Posts: 4198
  • Forgive your enemies, but never forget their names
Re: Monte Carlo Simulation with RDRAND
« Reply #17 on: October 07, 2013, 07:58:16 PM »
Hi qWord,

interesting idea. Thank you for providing the material.  :t

Gunther
You have to know the facts before you can distort them.