Tag Archives: generate

Generate a random string

If you’ve ever wanted to generate some random strings, here is a piece of code that can be helpful at times. Note that you can supply any other content for the array to choose the new string’s characters from.   private string GenerateRandomString(int length)         {             Char[] allowedChars = GetPrintableCharacters();             char[] chars = […]