XoshiroPRNG.Net 1.3.1

.NET Standard 1.4 .NET Framework 4.5.2
There is a newer version of this package available.
See the version list below for details.
dotnet add package XoshiroPRNG.Net --version 1.3.1
NuGet\Install-Package XoshiroPRNG.Net -Version 1.3.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="XoshiroPRNG.Net" Version="1.3.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add XoshiroPRNG.Net --version 1.3.1
#r "nuget: XoshiroPRNG.Net, 1.3.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 XoshiroPRNG.Net as a Cake Addin
#addin nuget:?package=XoshiroPRNG.Net&version=1.3.1

// Install XoshiroPRNG.Net as a Cake Tool
#tool nuget:?package=XoshiroPRNG.Net&version=1.3.1

Originally published as pepoluan.xoshiro

This is a hand-optimized C# implementation of the xoshiro/xoroshiro PRNG family created by Sebastiano Vigna and David Blackman.

NO unsafe code is used, yet it is as performant as -- if not more performant than -- System.Random. Here's a non-exhaustive proof.

For documentation -- and a much more detailed README -- please check XoshiroPRNG.Net Repository on SourceForge.

(Unit Tests are also available in the repo.)

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. 
.NET Core netcoreapp1.0 was computed.  netcoreapp1.1 was computed.  netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard1.4 is compatible.  netstandard1.5 was computed.  netstandard1.6 was computed.  netstandard2.0 is compatible.  netstandard2.1 was computed. 
.NET Framework net452 is compatible.  net46 was computed.  net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen30 was computed.  tizen40 was computed.  tizen60 was computed. 
Universal Windows Platform uap was computed.  uap10.0 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.
  • .NETFramework 4.5.2

    • No dependencies.
  • .NETStandard 1.4

  • .NETStandard 2.0

    • No dependencies.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on XoshiroPRNG.Net:

Package Downloads

like uwurandom, but slower

GitHub repositories (1)

Showing the top 1 popular GitHub repositories that depend on XoshiroPRNG.Net:

Repository Stars
Character generator for Shadowrun 5th edition
Version Downloads Last updated
1.6.0 2,030 5/20/2021
1.5.0 417 5/7/2021
1.4.0 1,175 12/14/2019
1.3.1 608 7/14/2019

XML Docs now included in package.
Add new license option: The Unlicense.
Use DateTime.UtcNow.Ticks for seed.
Many parameter validation + Exception if invalid.
Some tweaks to emulate System.Random as similarly as possible.