XoshiroPRNG.Net 1.6.0

.NET Core 2.1 .NET Standard 1.4 .NET Framework 4.5
dotnet add package XoshiroPRNG.Net --version 1.6.0
NuGet\Install-Package XoshiroPRNG.Net -Version 1.6.0
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.6.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add XoshiroPRNG.Net --version 1.6.0
#r "nuget: XoshiroPRNG.Net, 1.6.0"
#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.6.0

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

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 detailed proof, created using performance testing scripts provided here.

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

(Unit Tests are also available in the repo.)

Product Versions
.NET net5.0 net5.0-windows net6.0 net6.0-android net6.0-ios net6.0-maccatalyst net6.0-macos net6.0-tvos net6.0-windows net7.0 net7.0-android net7.0-ios net7.0-maccatalyst net7.0-macos net7.0-tvos net7.0-windows
.NET Core netcoreapp1.0 netcoreapp1.1 netcoreapp2.0 netcoreapp2.1 netcoreapp2.2 netcoreapp3.0 netcoreapp3.1
.NET Standard netstandard1.4 netstandard1.5 netstandard1.6 netstandard2.0 netstandard2.1
.NET Framework net45 net451 net452 net46 net461 net462 net463 net47 net471 net472 net48 net481
MonoAndroid monoandroid
MonoMac monomac
MonoTouch monotouch
Tizen tizen30 tizen40 tizen60
Universal Windows Platform uap uap10.0
Xamarin.iOS xamarinios
Xamarin.Mac xamarinmac
Xamarin.TVOS xamarintvos
Xamarin.WatchOS xamarinwatchos
Compatible target framework(s)
Additional computed target framework(s)
Learn more about Target Frameworks and .NET Standard.
  • .NETCoreApp 2.1

    • No dependencies.
  • .NETFramework 4.5

    • No dependencies.
  • .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 1,376 5/20/2021
1.5.0 307 5/7/2021
1.4.0 1,041 12/14/2019
1.3.1 467 7/14/2019

Provide GetRandomCompatible() interface