Pure.Primitives.Random
0.9.0
dotnet add package Pure.Primitives.Random --version 0.9.0
NuGet\Install-Package Pure.Primitives.Random -Version 0.9.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="Pure.Primitives.Random" Version="0.9.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Pure.Primitives.Random" Version="0.9.0" />
<PackageReference Include="Pure.Primitives.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 Pure.Primitives.Random --version 0.9.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Pure.Primitives.Random, 0.9.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 Pure.Primitives.Random@0.9.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=Pure.Primitives.Random&version=0.9.0
#tool nuget:?package=Pure.Primitives.Random&version=0.9.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Pure.Primitives.Random
Random value generators for Pure primitive types.
Overview
Pure.Primitives.Random provides types that generate random values conforming to the Pure.Primitives.Abstractions interfaces. These generators are intended for use in tests, property-based testing, and fuzz testing scenarios where you need arbitrarily-valued but interface-conforming primitives.
Types
Single values
| Type | Implements | Generates |
|---|---|---|
RandomChar |
IChar |
A random Unicode character |
RandomDate |
IDate |
A random date |
RandomTime |
ITime |
A random time |
RandomDateTime |
IDateTime |
A random date-time |
RandomInt / RandomLong / RandomDouble / etc. |
INumber<T> |
Random numeric values |
Collections
| Type | Generates |
|---|---|
RandomCharCollection |
Random sequence of IChar values |
RandomDateCollection |
Random sequence of IDate values |
RandomTimeCollection |
Random sequence of ITime values |
RandomDateTimeCollection |
Random sequence of IDateTime values |
Design Principles
- Interface-conforming — all types implement
Pure.Primitives.Abstractionsinterfaces. - AOT-compatible — no reflection; fully compatible with Native AOT.
Dependencies
Pure.Primitives.Abstractions— Pure primitive interfacesPure.Primitives— concrete implementations used internally
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net7.0 is compatible. 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. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net10.0
- Pure.Primitives (>= 3.7.0)
-
net7.0
- Pure.Primitives (>= 3.7.0)
-
net8.0
- Pure.Primitives (>= 3.7.0)
-
net9.0
- Pure.Primitives (>= 3.7.0)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on Pure.Primitives.Random:
| Package | Downloads |
|---|---|
|
Pure.RelationalSchema.Random
Package Description |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 0.9.0 | 453 | 10/22/2026 |
| 0.8.3 | 4,371 | 6/25/2026 |
| 0.8.2 | 1,365 | 5/20/2026 |
| 0.8.1 | 721 | 5/7/2026 |
| 0.8.0 | 4,722 | 12/1/2025 |
| 0.7.0 | 1,410 | 11/2/2025 |
| 0.6.0 | 689 | 11/1/2025 |
| 0.5.0 | 2,794 | 9/8/2025 |
| 0.4.0 | 1,004 | 8/29/2025 |
| 0.3.0 | 586 | 8/26/2025 |
| 0.2.0 | 437 | 8/24/2025 |
| 0.1.1 | 1,509 | 6/6/2025 |
| 0.1.0 | 210 | 6/6/2025 |