RandomGenerator 1.1.1

dotnet add package RandomGenerator --version 1.1.1                
NuGet\Install-Package RandomGenerator -Version 1.1.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="RandomGenerator" Version="1.1.1" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add RandomGenerator --version 1.1.1                
#r "nuget: RandomGenerator, 1.1.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.
// Install RandomGenerator as a Cake Addin
#addin nuget:?package=RandomGenerator&version=1.1.1

// Install RandomGenerator as a Cake Tool
#tool nuget:?package=RandomGenerator&version=1.1.1                

RandomGenerator

A library which generates random passwords, numbers, sentences, paragraphs and texts.

RandomGenerator Logo

NuGet

Install via NuGet: Install-Package RandomGenerator

Nuget Downloads

Or click here to go to the package landing page

It is Compatible with .NET Core 6.0+.

Basic usage

// generate random sentence.
 var generator = new RandomSentenceGenerator();
 // maximum number of words in the sentence. Here, the number of words depends on the configured part of speech. if nothing is configured then its return empty string. Defualt all part of speech are configured.
 var result = generator.Generate(10);

//generate random paragraph.
var generator = new RandomParagraphGenerator();
// this paragraph contains 3 sentences with words between 5 to 10. The number of words depends on the configured part of speech. if nothing is configured then its return empty string. Defualt all part of speech are configured.
var result = generator.Generate(3, 5, 10);

//generate random text.
var generator = new RandomTextGenerator();
//this text contains 3 paragraphs with sentences between 3 to 5 to each paragraph and each sentence contains words between 10 to 15. Here, the number of words depends on the configured part of speech. if nothing is configured then its return empty string. Defualt all part of speech are configured.
var result = generator.Generate(3, 3, 5, 10, 15);

// generate random number string (0-9) of specific length.
new RandomStringGenerator().GenerateNumberString(15)

// generate random alphabetic string (a-z,A-Z) of specific length.
new RandomStringGenerator().GenerateAlphabeticString(15)
// generate random alphnumeric string (a-z,A-Z,0-9) of specific length.
new RandomStringGenerator().GenerateAlphaNumbersString(15)
// generate random alphnumeric string (a-z,A-Z,0-9) with special characters of specific length.
new RandomStringGenerator().GenerateString(15)
// generate random password of specific length. this will generate password string up to 256 characters.
new RandomPasswordGenerator().Generate(10);
// generate random number of specific length.
// this function can generate a random number of length between 1 to 10.
RandomNumberGenerator.AbsoluteNumber(10);
// generate random number of specific length.
// this function can generate a random number of length between 1 to 19.
RandomNumberGenerator.AbsoluteLong(10);
// generate random unique number.
RandomNumberGenerator.Number();
// generate random password of specific length with configuration.
var password = new RandomPasswordGenerator()
            .IncludeNumeric(true)
            .IncludeLowercase(true)
            .IncludeUppercase(true)
            .IncludeSpecial(true)
            .Generate(10);

Product Compatible and additional computed target framework versions.
.NET net6.0 is compatible.  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 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 was computed.  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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net6.0

    • No dependencies.
  • net7.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
1.1.1 255 7/11/2023
1.1.0 152 7/11/2023
1.0.0 155 7/8/2023