MersenneTwister 1.0.5

This portable class library provides Mersenne Twister PRNGs;

Mersenne Twister (MT):
- MT19937ar, MT19937ar-cok, MT19937ar-cok-opt
- MT19937-64, MT19937-64-opt

SIMD-oriented Fast MT (SFMT):
- SFMT-19937, SFMT-opt-19937

Double precision SFMT (dSFMT):
- dSFMT-19937, dSFMT-opt-19937
- dSFMT-opt-gen-* (Generics version for many Mersenne Exponents)
-- 521, 1279, 2203, 4253, 11213, 19937, 44497, 86243, 132049, 216091

You can use any PRNG via a corresponding System.Random derived wrapping class:
- MTRandom
- MT64Random
- SfmtRandom
- DsfmtRandom

and also we provide Randoms class for convenience that has;
- Randoms.Create method to get the suitable implementation such as fastest for Random.Next()
- Thread-local default object properties:
-- WellBalanced for general purpose
-- FastestInt32 for Random.Next()
-- FastestDouble for Random.Next(int) or Next(int,int) or NextDouble()

Further more, AccurateRandom class provides accurate results of Random.Next(int maxValue) and Next(int minValue, int maxValue).

There is a newer version of this package available.
See the version list below for details.
Install-Package MersenneTwister -Version 1.0.5
dotnet add package MersenneTwister --version 1.0.5
<PackageReference Include="MersenneTwister" Version="1.0.5" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add MersenneTwister --version 1.0.5
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: MersenneTwister, 1.0.5"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install MersenneTwister as a Cake Addin
#addin nuget:?package=MersenneTwister&version=1.0.5

// Install MersenneTwister as a Cake Tool
#tool nuget:?package=MersenneTwister&version=1.0.5
The NuGet Team does not provide support for this client. Please contact its maintainers for support.


This package has no dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories (1)

Showing the top 1 popular GitHub repositories that depend on MersenneTwister:

Repository Stars

Version History

Version Downloads Last updated
1.0.6 8,869 5/22/2019
1.0.5 8,356 10/28/2016