MyNet.Generator 19.2.1

dotnet add package MyNet.Generator --version 19.2.1
                    
NuGet\Install-Package MyNet.Generator -Version 19.2.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="MyNet.Generator" Version="19.2.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="MyNet.Generator" Version="19.2.1" />
                    
Directory.Packages.props
<PackageReference Include="MyNet.Generator" />
                    
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 MyNet.Generator --version 19.2.1
                    
#r "nuget: MyNet.Generator, 19.2.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 MyNet.Generator@19.2.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=MyNet.Generator&version=19.2.1
                    
Install as a Cake Addin
#tool nuget:?package=MyNet.Generator&version=19.2.1
                    
Install as a Cake Tool

<div align="center">

MyNet.Generator

<img src="MyNetGenerator.png" alt="MyNet.Generator" width="96" height="96" />

Pseudo-random value generators, weighted sampling, and sequence helpers for unit tests, benchmarks, and prototyping.

</div>

<div align="center">

MIT License NuGet .NET

</div>


Features

Feature Description
IRandomGenerator Facade for ints, strings, and collections
Sampling Weighted picks and repeatable test doubles
Culture-aware Random data building blocks per locale
Lightweight No host framework assumptions

Installation

dotnet add package MyNet.Generator

Quick start

using MyNet.Generator.Facade;

var value = RandomGenerator.Current.Int(1, 100);
var item = RandomGenerator.Current.Item(["a", "b", "c"]);


Documentation


<div align="center">

<sub>

Copyright © 2016-2026 - Stéphane ANDRE. All Rights Reserved.

<br/>

Released under the MIT License.

</sub>

</div>

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 (2)

Showing the top 2 NuGet packages that depend on MyNet.Generator:

Package Downloads
MyNet.Text

String processing toolkit: templating, slugification, sanitization, normalization, truncation, redaction, casing, and formatting pipelines for .NET applications.

MyNet.Fakers

Locale-aware fake data generators for names, addresses, emails, URLs, and related test fixtures built on MyNet.Generator and MyNet.Geography.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
19.2.1 0 5/31/2026
19.2.0 32 5/31/2026
19.1.0 31 5/31/2026
19.0.0 51 5/29/2026