Philiprehberger.RandomReadableString 0.1.9

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

Philiprehberger.RandomReadableString

CI NuGet License Sponsor

Generate human-readable random strings like "swift-river-42" — great for slugs, identifiers, and placeholders.

Installation

dotnet add package Philiprehberger.RandomReadableString

Usage

using Philiprehberger.RandomReadableString;

// Default: 3 words, "-" separator
ReadableRandom.Generate();          // "swift-river-42"
ReadableRandom.Generate();          // "bold-eagle-17"
ReadableRandom.Generate();          // "calm-tide-83"

// Custom word count
ReadableRandom.Generate(wordCount: 2); // "happy-shore-56"
ReadableRandom.Generate(wordCount: 4); // "sunny-magic-lake-31"

// Custom separator
ReadableRandom.Generate(separator: "_"); // "quick_frost_74"
ReadableRandom.Generate(separator: " "); // "pale ocean 19"

Custom Word Count

using Philiprehberger.RandomReadableString;

ReadableRandom.Generate(2);  // "sunny-falcon"
ReadableRandom.Generate(4);  // "bright-red-swift-mountain"

Custom Separator

using Philiprehberger.RandomReadableString;

ReadableRandom.Generate(3, "_");  // "cool_river_42"
ReadableRandom.Generate(3, " "); // "happy cloud 17"

API

ReadableRandom

Method Description
Generate(int wordCount = 3, string separator = "-") Return a random readable string made of wordCount words plus a trailing 2-digit number, joined by separator

Notes:

  • The last token is always a random 2-digit number (10–99).
  • Words are drawn from a built-in list of 50 adjectives and 50 nouns.
  • Thread-safe.

Development

dotnet build src/Philiprehberger.RandomReadableString.csproj --configuration Release

License

MIT

Product Compatible and additional computed target framework versions.
.NET 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 was computed.  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 was computed.  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.
  • net8.0

    • No dependencies.

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
0.1.9 38 3/27/2026
0.1.8 77 3/25/2026
0.1.7 83 3/23/2026
0.1.6 81 3/23/2026
0.1.5 78 3/20/2026
0.1.4 93 3/16/2026
0.1.3 90 3/16/2026
0.1.2 87 3/16/2026
0.1.1 90 3/11/2026
0.1.0 87 3/11/2026