SharperHacks.CoreLibs.Random.Jsf 2.0.0

Prefix Reserved
This package has a SemVer 2.0.0 package version: 2.0.0+2026.10.19.JwD.9a8aae2.
dotnet add package SharperHacks.CoreLibs.Random.Jsf --version 2.0.0
                    
NuGet\Install-Package SharperHacks.CoreLibs.Random.Jsf -Version 2.0.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="SharperHacks.CoreLibs.Random.Jsf" Version="2.0.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="SharperHacks.CoreLibs.Random.Jsf" Version="2.0.0" />
                    
Directory.Packages.props
<PackageReference Include="SharperHacks.CoreLibs.Random.Jsf" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add SharperHacks.CoreLibs.Random.Jsf --version 2.0.0
                    
#r "nuget: SharperHacks.CoreLibs.Random.Jsf, 2.0.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.
#:package SharperHacks.CoreLibs.Random.Jsf@2.0.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=SharperHacks.CoreLibs.Random.Jsf&version=2.0.0
                    
Install as a Cake Addin
#tool nuget:?package=SharperHacks.CoreLibs.Random.Jsf&version=2.0.0
                    
Install as a Cake Tool

SharperHacks logo

PRNG Library for .NET

SharperHacks.CoreLibs.Random.Jsf

An implementation of Jenkin's Small Fast algorithm, that implements the SharperHacks.CoreLibs.Interfaces.IProg* interfaces.

Licensed under the Apache License, Version 2.0. See LICENSE.

Contact: coders@sharperhacks.org

Nuget: https://www.nuget.org/packages/SharperHacks.CoreLibs.Random.Jsf

Repo: https://codeberg.org/SharperHacks-org/Random.git

Targets

  • net10.0

Implements SharperHacks.CoreLibs.Interfaces:

  • IProgSeed
  • IProgState
  • IProgNextValue<T>

Classes

Jsf8

8 bit implementation of JSF algorythm and SharperHacks.CoreLibs.Interfaces.IProgNextValue<byte>.

Jsf16

16 bit implementation of JSF algorythm and SharperHacks.CoreLibs.Interfaces.IProgNextValue<UInt16>.

Jsf32

32 bit implementation of JSF algorythm and SharperHacks.CoreLibs.Interfaces.IProgNextValue<UInt32>.

Jsf64

64 bit implementation of JSF algorythm and SharperHacks.CoreLibs.Interfaces.IProgNextValue<UInt64>.

Jsf128

128 bit implementation of JSF algorythm and SharperHacks.CoreLibs.Interfaces.IProgNextValue<UInt128>.

JsfBase<T>

Base class for the Jsf# classes, implements SharperHacks.CoreLibs.Interfaces.IProgSeed and SharperHacks.CoreLibs.Interfaces.IProgState.

JsfRng

Static class that implements the methods used by the Jsf# classes.

Usage

If you are not concerned with repeatable playback of number streams, just create any of the Jsf# instances and start consuming the bits:

var rgen = new Jsf32();

var randNumber = rgen.NextValue();

// ...

If you are concerned with repeatable playback, get root seed:

First pass:

var rootSeed = RootEntropy.Seed;

// Up to you to implement seed storage.
RecordSeed(rootSeed);

var rgen = new Jsf32();

var randNumber = rgen.NextValue();

// ...

Second pass:

// Up to you to implement retrieval.
RootEntropy.Initialize(RetrievePreviousSeed())

var rgen = new Jsf32();

var randNumber = rgen.NextValue()

// ...
Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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
2.0.0 32 10/20/2026
1.0.0 32 10/19/2026