Skip to content

stratagyn/RandChar

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RandChar

.NET library for generating random text.

  • Installed using NuGet
dotnet add package RandChar
using RandChar;

//Printable ASCII without space
var passwordCharacters = 
    CharSet.ASCIILowercaseLetter 
    | CharSet.ASCIIUppercaseLetter 
    | CharSet.ASCIINumber 
    | CharSet.ASCIIPunctuation;

//Generates a password with 10 distinct password characters
var password = RandomCharGenerator.GetUniqueString(10, passwordCharacters);

//Generates 10 passwords, each with 10 distinct password characters
var passwords = RandomCharGenerator.GenerateUniqueStrings(10, passwordCharacters, 10)

About

Methods for generating random text.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages