XorShiftAddSharp 0.2.1

.NET Standard 2.1
There is a newer version of this package available.
See the version list below for details.
dotnet add package XorShiftAddSharp --version 0.2.1
NuGet\Install-Package XorShiftAddSharp -Version 0.2.1
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="XorShiftAddSharp" Version="0.2.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add XorShiftAddSharp --version 0.2.1
#r "nuget: XorShiftAddSharp, 0.2.1"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install XorShiftAddSharp as a Cake Addin
#addin nuget:?package=XorShiftAddSharp&version=0.2.1

// Install XorShiftAddSharp as a Cake Tool
#tool nuget:?package=XorShiftAddSharp&version=0.2.1


This is a pure C# implementation of a XORSHIFT-ADD (XSadd) pseudo-random number generator.


  • Small internal state size (128bit)
  • Long period(2^128-1)
  • Save and restore internal state anytime.
  • Can Retrieve the arbitrary n-step jumped state.


  • There is the implementation of almost same semantics of "xsadd.c" and "xsadd.h". (XorShiftAddCore)
  • There is the implementation of Inherited by System.Random. (XorShiftAdd)
  • Xml documentations are available (but currently partially)
  • Compared tests from original library are passed.

Change Log


Initial release.

ver 0.2

Changed XorShiftAdd psesudo-random generator's internal state store from Span to InternalState struct. Unfortunately this is a devastating changes from ver 0.1 .

ver 0.2.1

Fix: XorShiftAddCore and XorShiftAdd class Jump method's baseStep parameter can now be prefixed with "0x" or "0X". (Previous Jump method could be accept prefix, but CalculateJumpPolynomial couldn't be accept prefix.)

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
.NET Core netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.1 is compatible. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Additional computed target framework(s)
Learn more about Target Frameworks and .NET Standard.
  • .NETStandard 2.1

    • No dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.0.1 202 3/30/2021
1.0.0 247 8/12/2020
0.3.0 295 8/1/2020
0.2.1 481 7/26/2020
0.2.0 412 7/26/2020
0.1.0 617 7/22/2020