Skip to content

Random string

Pawel edited this page Mar 17, 2017 · 18 revisions

Generates random string including characters from UTF8.

new RandomStringGenerator()

  • new random generator with default seed

new RandomStringGenerator(int seed)

  • new random generator with seed value

string randomValue = randomString.GenerateValue();

  • random string with 25 characters.

string randomValue = randomString.GenerateValue(100);

  • random string with 100 characters

string randomValue = randomString.GenerateLowerCaseValue(100);

  • random lowercase string with 100 character

string randomValue = randomString.GenerateUpperCaseValue(100);

  • random uppercase string with 100 character

string randomValue = randomString.GenerateValueWithout(25,'$','@','-','1','W','f');

  • random string with excluded characters e.g. $, @, -, 1, W, f

Clone this wiki locally