Mersenne Twister Object in C#

    This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

    • Mersenne Twister Object in C#

      I have created a multi-instance MtRandom object in C# based upon Game Coding Complete code (credited in source and note - including link). It is seedable, serializable, and resettable (though not thread-safe).

      If anyone is interested it can be downloaded at:
      gotdotnet.com/Community/UserSa…f1-4fd0-aa2a-422590d7f18c

      Any feedback is appreciated :) .
      Alasdair Russell (Dhericean)
      Gamma Testing - Where testing is extended to the full user community (AKA Shipping the Program)
    • RE: Mersenne Twister Object in C#

      What a cool idea - if you wanted to make it thread safe I'd suggest creating a completely separate one, so a programmer could choose - the thread safe version would take a performance hit for watching the front gates, so to speak.
      Mr.Mike
      Author, Programmer, Brewer, Patriot