Skip to content
Simple utility class for generating random strings of any arbitrary size in C#.
C# Other
  1. C# 99.2%
  2. Other 0.8%
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.circleci
.github
docs
src
tests
.appveyor.yml
.gitignore
.travis.yml
LICENSE
README.md
RandomStringGenerator.sln
build-docs.bat
build-docs.sh

README.md

API Docs NuGet License AppVeyor Travis CircleCI
API Docs NuGet License Shield AppVeyor Travis CircleCI

netstandard2.0 class library

Generate random strings in C#

Use RandomStringGenerator.GenerateRandomString() to generate a random string. There are overloads for custom generated string length and legal characters to use for string generation. Internally uses the System.Security.Cryptography.RNGCryptoServiceProvider as a randomness provider.

You can’t perform that action at this time.