SunamoRandom 26.7.28.1
.NET 8.0
This package targets .NET 8.0. The package is compatible with this framework or higher.
.NET Standard 2.0
This package targets .NET Standard 2.0. The package is compatible with this framework or higher.
dotnet add package SunamoRandom --version 26.7.28.1
NuGet\Install-Package SunamoRandom -Version 26.7.28.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="SunamoRandom" Version="26.7.28.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="SunamoRandom" Version="26.7.28.1" />
<PackageReference Include="SunamoRandom" />
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 SunamoRandom --version 26.7.28.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: SunamoRandom, 26.7.28.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.
#:package SunamoRandom@26.7.28.1
#: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=SunamoRandom&version=26.7.28.1
#tool nuget:?package=SunamoRandom&version=26.7.28.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
SunamoRandom
A lightweight .NET library for generating random values of various types including integers, floats, bytes, strings, booleans, DateTimes, and enum values.
Installation
dotnet add package SunamoRandom
Features
- Random integers with inclusive/exclusive bounds (
RandomInt,RandomInt2) - Random floats with configurable decimal precision (
RandomFloat) - Random bytes and byte arrays (
RandomByte,RandomBytes) - Random strings with control over character types: uppercase, lowercase, numeric, special (
RandomString,RandomStringWithoutSpecial) - Random booleans (
RandomBool) - Random DateTimes up to a specified year (
RandomDateTime) - Random enum values (
RandomEnum<T>) - Random collection elements (
RandomElementOfCollectionT<T>,RandomElementOfCollection) - Random color components for light/dark palettes (
RandomColorPart) - Random number lists (
RandomHelperList.GenerateNumbers) - Password-style strings with non-alphanumeric characters (
RandomStringHelper.RandomString)
Usage
using SunamoRandom;
// Random integer between 1 and 100 (inclusive)
int number = RandomHelper.RandomInt(1, 100);
// Random string of 10 alphanumeric characters
string text = RandomHelper.RandomStringWithoutSpecial(11);
// Random enum value
MyEnum value = RandomHelper.RandomEnum<MyEnum>();
// Random element from a list
var element = RandomHelper.RandomElementOfCollectionT(myList);
// Generate a list of 5 random 6-digit numbers
var numbers = RandomHelperList.GenerateNumbers(6, 5);
Target Frameworks
net10.0, net9.0, net8.0
Links
License
MIT
| Product | Versions 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. net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 is compatible. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. 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. |
| .NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
| .NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
| .NET Framework | 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 | tizen40 was computed. tizen60 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)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
.NETStandard 2.0
- Microsoft.Extensions.Logging.Abstractions (>= 10.0.2)
-
net10.0
- Microsoft.Extensions.Logging.Abstractions (>= 10.0.2)
-
net8.0
- Microsoft.Extensions.Logging.Abstractions (>= 10.0.2)
-
net9.0
- Microsoft.Extensions.Logging.Abstractions (>= 10.0.2)
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 |
|---|---|---|
| 26.7.28.1 | 96 | 7/28/2026 |
| 26.5.18.4 | 114 | 5/18/2026 |
| 26.3.28.3 | 142 | 3/28/2026 |
| 26.2.7.2 | 129 | 2/7/2026 |
| 26.2.5.1 | 126 | 2/5/2026 |
| 26.1.1.56 | 134 | 1/1/2026 |
| 26.1.1.7 | 125 | 1/1/2026 |
| 26.1.1.1 | 130 | 1/1/2026 |
| 25.12.31.2 | 134 | 12/31/2025 |
| 25.12.31.1 | 130 | 12/31/2025 |
| 25.12.21.1 | 185 | 12/21/2025 |
| 25.6.7.1 | 212 | 6/7/2025 |
| 25.3.29.1 | 170 | 3/29/2025 |
| 24.11.11.1 | 209 | 11/11/2024 |
| 24.11.9.1 | 177 | 11/9/2024 |
| 24.9.20.1 | 196 | 9/20/2024 |
| 24.7.16.1 | 213 | 7/16/2024 |
| 24.7.15.1 | 199 | 7/15/2024 |
| 24.7.12.1 | 206 | 7/12/2024 |
| 24.7.1.1 | 219 | 7/1/2024 |
Loading failed
y