MyNet.Generator
19.0.0
See the version list below for details.
dotnet add package MyNet.Generator --version 19.0.0
NuGet\Install-Package MyNet.Generator -Version 19.0.0
<PackageReference Include="MyNet.Generator" Version="19.0.0" />
<PackageVersion Include="MyNet.Generator" Version="19.0.0" />
<PackageReference Include="MyNet.Generator" />
paket add MyNet.Generator --version 19.0.0
#r "nuget: MyNet.Generator, 19.0.0"
#:package MyNet.Generator@19.0.0
#addin nuget:?package=MyNet.Generator&version=19.0.0
#tool nuget:?package=MyNet.Generator&version=19.0.0
<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">
</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"]);
Related packages
- MyNet.Primitives
- MyNet.Fakers — higher-level locale-aware fakes
Documentation
<div align="center">
<sub>
Copyright © 2016-2026 - Stéphane ANDRE. All Rights Reserved.
<br/>
Released under the MIT License.
</sub>
</div>
| 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. |
-
net10.0
- MyNet.Primitives (>= 19.0.0)
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.