Soenneker.Utils.Random.Security 4.0.304

Prefix Reserved
There is a newer version of this package available.
See the version list below for details.
dotnet add package Soenneker.Utils.Random.Security --version 4.0.304
                    
NuGet\Install-Package Soenneker.Utils.Random.Security -Version 4.0.304
                    
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="Soenneker.Utils.Random.Security" Version="4.0.304" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Soenneker.Utils.Random.Security" Version="4.0.304" />
                    
Directory.Packages.props
<PackageReference Include="Soenneker.Utils.Random.Security" />
                    
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 Soenneker.Utils.Random.Security --version 4.0.304
                    
#r "nuget: Soenneker.Utils.Random.Security, 4.0.304"
                    
#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 Soenneker.Utils.Random.Security@4.0.304
                    
#: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=Soenneker.Utils.Random.Security&version=4.0.304
                    
Install as a Cake Addin
#tool nuget:?package=Soenneker.Utils.Random.Security&version=4.0.304
                    
Install as a Cake Tool

alternate text is missing from this package README image alternate text is missing from this package README image alternate text is missing from this package README image alternate text is missing from this package README image

alternate text is missing from this package README image Soenneker.Utils.Random.Security

A utility library for security related random operations.

Installation

dotnet add package Soenneker.Utils.Random.Security

Quick start

using Soenneker.Utils.Random.Security;

Call the static RandomSecurityUtil methods directly; no dependency-injection registration is required.

Common operations

  • GetByteArray() - Generates a cryptographically secure random byte array of the specified length. Returns a byte array filled with cryptographically secure random values.
  • Next() - Generates a cryptographically secure random integer in the specified range [minValue, maxValue).
  • NextDecimal() - Generates a cryptographically secure random decimal in the specified range [minValue, maxValue).
  • GetRandomFraction() - Generates a cryptographically secure random fraction in the range [0, 1).
  • NextDouble() - Generates a cryptographically secure random double in the range [0.0, 1.0).
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.
  • net10.0

    • No dependencies.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on Soenneker.Utils.Random.Security:

Package Downloads
Soenneker.Hashing.Argon2

A utility library for Argon2 hashing and verification

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
4.0.307 168 8/31/2026
4.0.306 108 8/30/2026
4.0.305 205 8/29/2026
4.0.304 85 8/29/2026
4.0.303 334 7/27/2026
4.0.302 205 7/16/2026
4.0.301 1,431 6/18/2026
4.0.298 518 4/23/2026
4.0.296 472 3/12/2026
4.0.293 280 3/10/2026
4.0.292 219 3/9/2026
4.0.291 135 3/9/2026
4.0.290 232 3/4/2026
4.0.289 398 1/18/2026
4.0.288 299 1/2/2026
4.0.287 626 11/20/2025
4.0.286 306 11/6/2025
4.0.285 321 10/29/2025
3.0.284 453 9/3/2025
3.0.283 328 8/11/2025
Loading failed

Improve README documentation