Soenneker.Utils.Random
4.0.129
Prefix Reserved
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package Soenneker.Utils.Random --version 4.0.129
NuGet\Install-Package Soenneker.Utils.Random -Version 4.0.129
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" Version="4.0.129" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Soenneker.Utils.Random" Version="4.0.129" />
<PackageReference Include="Soenneker.Utils.Random" />
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 --version 4.0.129
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Soenneker.Utils.Random, 4.0.129"
#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@4.0.129
#: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&version=4.0.129
#tool nuget:?package=Soenneker.Utils.Random&version=4.0.129
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Soenneker.Utils.Random
A thread-safe random utility library
Installation
dotnet add package Soenneker.Utils.Random
Usage
// Returns an integer >= 5, and < 20
RandomUtil.Next(5, 20);
// Returns a double >= 5, and < 20
RandomUtil.NextDouble(5, 20);
// Returns a random number with a uniform and discrete distribution
RandomUtil.NextDecimalUniform(5, 20);
| Product | Versions 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
- Microsoft.Extensions.Logging.Abstractions (>= 10.0.11)
NuGet packages (5)
Showing the top 5 NuGet packages that depend on Soenneker.Utils.Random:
| Package | Downloads |
|---|---|
|
Soenneker.Extensions.String
A collection of useful string extension methods |
|
|
Soenneker.Extensions.Enumerable
A collection of helpful enumerable extension methods |
|
|
Soenneker.Utils.Delay
A utility library for generic time delay related operations |
|
|
Soenneker.Extensions.List
A collection of helpful list extension methods |
|
|
Soenneker.Utils.Test.PhoneNumber
Generates a random valid 10-digit phone number |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 11.0.149 | 43,305 | 11/2/2026 |
| 11.0.148 | 177 | 11/2/2026 |
| 11.0.147 | 60,188 | 10/26/2026 |
| 4.0.146 | 85,672 | 10/26/2026 |
| 4.0.145 | 86,306 | 10/14/2026 |
| 4.0.144 | 10,504 | 10/14/2026 |
| 4.0.138 | 26,530 | 10/13/2026 |
| 4.0.136 | 66,395 | 10/11/2026 |
| 4.0.135 | 217,124 | 9/24/2026 |
| 4.0.134 | 110,571 | 9/15/2026 |
| 4.0.133 | 88,840 | 9/13/2026 |
| 4.0.131 | 106,523 | 9/8/2026 |
| 4.0.130 | 265,562 | 8/30/2026 |
| 4.0.129 | 55,440 | 8/29/2026 |
| 4.0.128 | 120,479 | 8/26/2026 |
| 4.0.127 | 149,619 | 8/11/2026 |
| 4.0.126 | 207,695 | 7/27/2026 |
| 4.0.125 | 222,380 | 7/16/2026 |
| 4.0.124 | 84,506 | 7/14/2026 |
| 4.0.123 | 197,294 | 6/18/2026 |
Loading failed
Improve XML documentation